Quote from: DanLoffler at Feb 27, 2012, 02:29 PM
Here's my footer chunk ...
<p>
<a href="Privacy-Policy" title="Privacy Policy">Privacy Policy</a> -
<a href="Terms-of-Use" title="Terms of Use">Terms of Use</a> -
<a href="Disclosure" title="Disclosure">Disclosure</a> -
<a href="Contractors" title="Contractors">Contractors</a> -
<a class='last' href="Form-Pop-up" title="contact us">Contact Us</a>
</p>
<small class="copyright">© 2012 Cross Country Home Services, Inc. All Rights Reserved</small>
Can I make a constructive suggestion on this:
When creating fixed blocks of link code as with your footer navigation, I would suggest using the "ID" instead of the link Alias.
Change this:
<a href="Privacy-Policy" title="Privacy Policy">Privacy Policy</a>
To this:
<a href="[~IDNUMBER~]" title="[*menutitle*]">Privacy Policy</a>
Change "IDNUMBER" to the number of the relevant page e.g Privacy-Policy = 9
I have added "menutitle" in the title tag so it dynamically changes if and when you update it - you don't have to go into the chunk and manually change the text this way.
You could even use a "Wayfinder" call which only shows specific ID's:
[[Wayfinder? &startId=`0` &includeDocs=`1,2,3,4` &hideSubMenus=`1` &sortBy=`menuindex` &titleOfLinks=`menutitle`]]
I dont know if this is causing any problems but your "Base Href" code is marked-up incorrectly, at the moment its rendered as:
(had to replace the domain name with the text YOURDOMAINNAME as the board re-writes it with nofollow etc. making the code unreadable)
<base href="YOURDOMAINNAME"></base>
The code should be rendered like this:
<base href="YOURDOMAINNAME" />
Or like this in your template file:
<base href="[(site_url)]" />
[ed. note: iusemodx last edited this post 14 years, 7 months ago.]