Friday 29 September 2006 2:11:46 pm
Hallo Marko
I think I would try to it this way:
Add an integer attribute to each contentclass which will allow your editors to set the priority.
Create an extension that will grab an object by their id and fetch the main node beloging to this objct. Fetch the value of the integer attribute holding your priority and set the priority of the main node to this value using setAttribute. Create a workflow that will execute this extension right after publishing an object. The only problem I see with this approach is that the object is already published before you change the node priority whereas it would be nice to it in one step. (Actually I would not use an additional attribute but insert a custom input field in the edit template and then just hack the content/edit.php to set the node priority to whatever was posted as this is a matter of 15 min work whereas I still have not managed to have a look at workflows and thus tend to avoid them. But doing it without changing kernel files is certainly more flexible and less error prone) Greetings from Luxembourg Claudia
|