hi,
just one short question!,
how can i set and/or change current template to another one for whole site and newly created pages and content?
what about template inheritance?
Because, otherwise i must change page templates manually for pages and contents i want, isn't it :S
thanks
Afaik it is not possible from within the cuyahoga admin to change the templates for all nodes of a site. (I believe it would be a nice feature)
You can find the necessary sql sript in our wiki
http://wiki.cuyahoga-project.org/wiki/index.php/DatabaseScripts
robert-mischke(I believe it would be a nice feature)
Thank you robert, i got it and i fully agree that and MUST.
Think about 100 or more pages, so it would be nightmare for changing all of them.
Alternatively, a quick hack would be to copy the required template over the original template file ;)
I agree too.
template inheritance would be a huige bonus.
When you have 100 + pages you end up having to recreate the same template with a single change again and again.
I have already thought about implementing it.
Implementing it is not too bad, because the order would control which sections are at the top in each placeholder.
It does mean that the admin has to change a bit, but not much.
Also, i am have designed some extra admin screen to handle when the template is change or the placeholders changed.
When this happens the sections are left mapped to placeholders that no longer exist.
I wrote a screen that checks this and allows you to do bulk remapping.
ged
I have the same problem.
There is also another problem that will be directly related to this if we start doing template inheritance.
This si when the placeholder names change or are reduced for the template. This cause sections to not have a placeholder to map to ( if already mapped).
The way around this si a bit of code I wrote that in the templates area where you can do a search for templates placeholders in relation to sections. This gives you back a list, and from that you can do a multi-select to automatically select 100's of sections to a new placeholder. Very useful me thinks.
The other question of template inheritance, which is quite simple is the ordering. Currently, if i remember correctly when the page engine is injecting the sections it does the template sections and then the page sections. So fro template inheritance, how does it decide which template sections get processed first compared to others.>
I would just maintain an order, so that this can be controlled.
Lastly, should we have a control template make up of others that can be given a name. I would think this is much tighter, but more work.