I have two spaces. One is the "view" page and the other is the "tool" page. I want to render the "tool" on various "view" pages through my wiki, within the context of the view. Currently, in the "view" page I use:
{{velocity}}
#includeInContext("Interfaces.tool.WebHome")
{{/velocity}}
This works fine and I can retrieve for example the children or data of the "view" page with the code in the "tool" page, which is what I want.
However, if I include an:
{{velocity}}
{{html wiki="true"}}
<tag ... html></tag>
{{/html}}
{{/velocity}}
In the "tool" page, the html is only rendered as text in the "view" page. I've also tried moving the {{html}} tags to the "view" page or wiki="false" but with no luck. Any other ideas to try? Maybe some other function than includeInContext()?
#includeInContext is partially deprecated. You should use the new {{include}} wiki macro, which in your case would look like:
{{include reference="Interfaces.tool.WebHome"/}}
You don't need the {{velocity}} wrappers in the view page either, just the {{include}} macro.
Related
In TYPO3, how do I get a login form to be the first rendered content element on a page and all its sub pages? I tried to check the "recursive" option but that doesn't seem to do the trick?
There are quite a few ways to set up something like this. Here's one approach:
Add a separate content section in your backend layout right above the current section.
Use slide to have pages inherit content for this section from their parent pages
Put the login form in that section on your the root page of your subtree.
This rather simple approach leaves control to the editor.
The recursive option you mentioned is very likely related to the record storage page and tells TYPO3 to look for records (here: users) in subpages of the selected page.
I have a page of about 10 embedded PDF docs. My question is there another option that would use smaller file sizes or something so they don't bogg down the page when visited? Even convert PDF to something else if possible. Right now they are all in an accordion jquery and run with Scribd. Maybe something similar to this would work.:
scrolling text box
If you want the jqueryui to download different data for each tab you need to put an empty div inside each section and then set an on open (I am not familiar with jqueryui but maybe the activate event?) and create an ajax call to get the relevant pdf and save it to the empty div.
There are lots of questions about ajax in jqui accordion here here and here for example.
the site that I'm working at is designed in a such way that CSS class is set for the tag on all the pages and the css classes used are different for all pages. Each page has common elements such as a header, a footer and a nav bar. I'd like to set up a single page template and include all common elements there but the body tag stands in the way. Is there a way to control a template from a content page? I know I can specify a code behind for content pages but i can't rely on content authors to enter it correctly each time they add a page. My current thinking is to set up multiple page template, one for each css class that is referenced in the body tag and put the common page elements into user controls. This is less than ideal because I will end up with lots of mostly identical templates and my user controls would not be editable easily. I guess I would have to use shared content items and such making the content authors hunt all over the site. I would have been much simpler to update the common header in a single page template.
Can someone please suggest a way?
I submitted a reply in the Sitefinity forums where you originally posted this, but just in case you check here first I'll ask the same question: how is the css class for body determined?
if it can be done programmatically you can use the code-behind of the Master Page for the template to set it so that it's handled automatically.
If this won't work, tell me more about how the css class is assigned and I will try to come up with an alternative.
hope this is helpful!
i have done 'everything' that manual says.
included all files, adding it properly to html structure, loaded images,..
please, you can view live problem here
You are using ajaxpage to load the div with id=slider for certain categories for page.php. However, Nivo slider is looking for a div after the primary page has loaded (the $(window).load function).
Somehow, you need to attach the .load function call to the page being loaded by ajaxpage.
You might try adding the $(window).load call to the bottom of each page whenever you are setting up a Nivo slideshow.
If you were using jQuery's ajax library/module calls, you might be able to attach the load action to fire when the ajax has loaded.
I looked at the source of one of your page.php pages with Nivo and I think that you set up the HTML correctly, but the Nivo module just has not been started, partly because of the way the page is pulling in the content using ajax.
This is a clever way of doing things, but just needs a different trick to starting Nivo.
how to redirect to another .aspx page on clicking on a rectangle on a .aspx page?plz mention the whole program including headers, preferably in vb
You can use the ImageMap control to do what you're looking for. Image maps allow you to define portions of an image (as rectangles, if you wish) and then define which URL the browser will navigate to for each particular 'clickable region' of the map you create!
Take a look at http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.imagemap.aspx for further information on how to use the ImageMap control.