SOLVED Dynamically Add Elements To Rocketsproket Layout Modes
Posted 6 years 6 months ago
Hi...I want to use a cron job and/or ajax request to dynamically add additional elements to an exsisting rocketsproket layout mode. For example...adding an additional mosaic block to a existing RS mosaic or adding an addition list item to an existing RS list group. Has anyone every tried doing this? If so...what did you find to be the easiest way of doing it?
Re: SOLVED Dynamically Add Elements To Rocketsproket Layout Modes
Posted 6 years 6 months ago
Putting roksprockets within roksprockets is not a good idea as they can conflict. I've never used a cron job to add a whole module. Usually you would create articles and set publication dates on them to have them appear at certain preordained times.
I can';t think why you would need to do this so it would be iunteresting to understand the reasons driving this requirement - perhaps then I could offer some alternate suggestions.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: SOLVED Dynamically Add Elements To Rocketsproket Layout Modes
Posted 6 years 6 months ago
Thanks for replying. To clarify a bit more...I'm creating an online auction for my school and I wanted to use the rocketsproket table layout as placeholders for each auction item. When one auction expires...I wanted to dynamically update the table layout with a new auction item. I've created my own html/ajax setup that does this already...but rocketsproket has a more "polished" look and feel than my html design.
Re: SOLVED Dynamically Add Elements To Rocketsproket Layout Modes
Posted 6 years 6 months ago
Then I would suggest that you create the auction items as article and put a start and end publication date on them. Roksprocket would stop showing them after they expire. You could also limit the number of items that roksprocket shows at any one time. Roksprocket itself picks up the content dynamically so there no need to be trying to add/remove content from the roksprocket or to generate other roksprockets dynamically.
You might also like to look at the many "auction" extensions available on JED.
If you are a developer you may also want to look at "Fabrik" which will allow you to write your own database application that work within Joomla.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.