Poetry for every day - plugin how to

Radim12

Avatar: Radim12

2011-06-06 17:38

Hello,
I am new to Quick.Cms 3.1. I like it much. I want to create plugin to show in left menu under Poetry category 2 links - one for today poem and second for tomorrow poem. So I have 365 poems, each one for one day in year. I want to show only two of them at time.

What is the best practice to make plugin. I already studied all documentation + advanced. I need some tips --- how to do it. Thanks.

» Quick.Cms v3.x

Radim Kalma

Makaron

Avatar: Makaron

2011-06-07 15:57

I think You have to write Your own plugin. You have to get know which day is now fe using this article: http://www.epochconverter.com/epoch/daynumbers.php
After that You can load two poems using variable which You get.

I helped? Like it: www.facebook.com/makwebpl

beholder

Avatar: beholder

2011-06-12 21:22

Expanding the advice of Makaron:

You should enter the code putting poems into variables $sPoem1 and $sPoem2 to file templates/themes/default.php
Then you will have the variables ready. You can use the variables in the template templates/container.tpl.

http://cicmanec.sk/easyplugins/

beholder

Avatar: beholder

2011-06-12 21:23

ok, let me rephrase, because the above kind of doesn't make sense:
First create the code that is putting poems into variables $sPoem1 and $sPoem2. You then should enter the code to file templates/themes/default.php.

Then you will have the variables ready. You can use the variables in the template templates/container.tpl.

Hope it makes more sense now.

http://cicmanec.sk/easyplugins/

Back to top
about us | contact