I've been using patTemplate in a component I'm working on. I mentioned this in another thread, but haven't received any comments on it, so I will ask it again here.
I guess the first question I should ask is this:
Should I generate my links in my template or in my php code? Right now, I'm employing the following method: I pass a global variable to my template called (a couple actually) BASE_LINK_URL, BASE_IMAGE_URL, etc... these variables provide the base url for my links. Then, depending on where I want to link to, I add on my appropriate task and view information.
Is this a recommended way of doing it? It is working okay in the current setup...
now I would like to provide SEF functionality... usually this would require a SEFReltoabs or whatever the function is to make the URL SEF friendly... what I would really like to see is the ability to implement a somewhat customized SEF for the component specific part of the URL... so, I am writing a calendar application, and currently the URL looks like:
http://127.0.0.1/joomla11/index.php?opt ... 0901 (I know... I need to add the itemid in there...)
It would be great if I could get it to look like:
http://127.0.0.1/joomla11/com_extcalend ... t/20060901
or at least get something like:
http://127.0.0.1/joomla15/component/opt ... t/20060901
So my question is, how do I go about doing this in patTemplate?
I would like to have a template such as:
and then link somewhere with something like:
Is there any way to implement something like this? What is the best way of going about this?