Hi .. im just using this excellent tutorial to build a site .. what i really need to know IS ....
Is it possible to make ALL links that i create using the content manager use the class="loadinto-MyDiv" and rel="mytemplate" code .. so my end user doesnt have to edit the source to do this ?
That would be GREAT!
thnx for your help
Everytime you use Flash ... a puppy dies .....
R.G Taylor
A plugin could probably handle that.
Quote from: PaulGregory at Nov 21, 2006, 10:34 AM
A plugin could probably handle that.
do you have any idea how i would go about it ...
or .. any ideas how i would write a snippet that would do say this :
if i create a snippet called [[sitelink]] and make that snippet output <a class="loadinto-AjaxLoad" rel="Plain" href="LINK VARIABLE">LINK VARIABLE NAME</a>
im no good at coding .. but my thoughts are that LINK VARIABLE and LINK VARIABLE NAME could be assigned to the snippet in the normal way .. so if you did [[sitelink? &LINKVARIABLE=`News.html` &LINKVARIABLENAME=`NEWS`]] that would do nicely .. problem is .... i have no idea how to code it!
Could anyone help .. please?
Thnx
Martyn
Everytime you use Flash ... a puppy dies .....
R.G Taylor
Ok .. heres another one ...
Im using Ditto for news ... How do i hack ditto so all the Title and read more links all contain the class="loadinto-MYVARIABLE rel="plain" attributes?
Again .. any help greatly appreciated!
Martyn
Everytime you use Flash ... a puppy dies .....
R.G Taylor
Quick update

i now need to do the same thing to wayfinder!
Everytime you use Flash ... a puppy dies .....
R.G Taylor
-
☆ A M B ☆
- 24,524 Posts
Put whatever you want in your template chunks. That’s what they are for
Quote from: sottwell at Nov 21, 2006, 12:30 PM
Put whatever you want in your template chunks. That’s what they are for 
cant seem to figure it out .. for instance in ditto .. how can i include stuff inside the [+LINK+] tag ?
thnx
Martyn
Everytime you use Flash ... a puppy dies .....
R.G Taylor
Hi,
This is great - I would love to use this on my site for navigation. However, there is one thing that I have noticed: if you open a link in a new tab/window, the the 2nd template (nameOfTemplateForContentOnly in the tutorial) is used - without navigation aides etc. Is there a way to make it open with the full template when opened ini a new tab/window?
Michal
edit: Corrected typo
Perhaps adding some Javascript can (I don’t know, I can only guess) obtain the results you need.
Consider that the JS, as the author states, it’s aimed to load small pieces of information and not entire pages. You can use this method to navogate a site, but that’s not the use it’s intended for: there are some drawbacks as you have found.