OK, after one day break I come back. Yesterday wasn't so free because i studied documentation (but it was day without code) . It's time to start another brand new task. I have only one problem...Create a Blog Entry Date Calendar Icon Plugin for Joomla! v 1.5
Describe the task.
* Create a Joomla! v 1.5 plugin that will extract the published date
from an article and insert a Calender Icon containing the date the article
was published next to the title. This might require template overrides if
the date is to print to the left of the title on the blog and article views.
Resources:
* CSS Articles
# Creating a Blog Entry Date Calendar Icon Look with CSS, Mostly
http://brainstormsandraves.com/archives ... scalendar/
# Almost Bullet-Proof CSS Calendar
http://stuffthathappens.com/blog/2007/0 ... -calendar/
PROBLEM
I don't know how to implepment this Date Calendar Icon to the Plugin level... I made up my mind that I'll do this task the best I can, I'm going to use following method:
WAY OF RESOLVINGThis might require template overrides if the date is to print to the left of the title on the blog and article views.
Plugin has to integrate into com_content component; I have to override system component because there are main elements which control position of text (and calendar icon also) in frontpage, article, etc...
MANUAL INSTALLATION
I have manually edited /components/com_content/views/frontpage/tmpl/default_item.php and calendar icon looks beautiful! Take a look on attachment (with and without icon)
AUTOMATIC INSTALLATION
But when I append to xml of plugin following line:
Code: Select all
<filename>components/com_content/views/frontpage/tmpl/default_item.php</filename>
CONCLUSION
This method (overwriiting system files) is very very dangerous (what if in RC5 xD someone change something on view of com_component?). I believe that there is other way to resolve this problem or else this code has to be build into the core of Joomla . This task can't be plugin? (or have to be build in default installation of Joomla?)
PROGRESS: 85% ? (5 Jan 2008)
STATUS: WORKING
In attachment is also manually edited file which include code to images below [components/com_content/views/frontpage/tmpl/default_item.php]
EDIT:
30/12 - 4:37a.m. Update of source file (Files.zip)
31/12 - 2:59a.m. Another verion of view CSS modification - added image (calendar2)