Can you assume to key the start of the four week period from the publish date ? If so when rendering calculate the number of weeks from publish and show the item in the CSV of the content picker at that index.
Sorry, my mistake, I had assumed you're using a MultiPicker, but if you're using four seperate content pickers, it's even easier, as it's just the date compare, and then swich to render the appropriate one.
I aggree with Hendy, but as I understand it you would
like to pick out four content nodes on a regular basis with no relation
to the createDate. If this is the case I would suggest adding an extra
property for each of the four content pickers - type: textstring - alias
weekInYear - like this:
Then you would pick out the nodes and enter the appropriate week
number for showing each node. Then in your xslt (new schema) you could
add the following:
Timed content - Page of the week
OK - I have 4 content nodes which I are manaully choosen using content picker.
I would like them to show 1 item at a time for 1 week only.
At the end of the 4 week cycle, I would choose another 4.
What is the best way to do this?
Hi Tizer,
Can you assume to key the start of the four week period from the publish date ? If so when rendering calculate the number of weeks from publish and show the item in the CSV of the content picker at that index.
Here's a blog post about UltimatePicker and XSLT which covers parsing CSVs, and here's a post about comparing dates in XSLT
HTH,
Hendy
Hi Tizer,
Sorry, my mistake, I had assumed you're using a MultiPicker, but if you're using four seperate content pickers, it's even easier, as it's just the date compare, and then swich to render the appropriate one.
Cheers,
Hendy
Hi Tizer,
I aggree with Hendy, but as I understand it you would like to pick out four content nodes on a regular basis with no relation to the createDate. If this is the case I would suggest adding an extra property for each of the four content pickers - type: textstring - alias weekInYear - like this:
contentPicker_1
weekInYear_1
contentPicker_2
weekInYear_2
....
Then you would pick out the nodes and enter the appropriate week number for showing each node. Then in your xslt (new schema) you could add the following:
I haven't tested the code, so please get back to me if it failes or you need further info. Of course I would also add a <call-template> :-) ...
Regards,
Søren
Thanks Hendy and Søren - some great info and links there...
It shows me that I have a long way to go to learn all about umbraco.
I'll post back with my solution
Thanks again
is working on a reply...