Welcome, Guest
Username Password: Remember me

Templating Idea
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Templating Idea

Templating Idea 09 Dec 2008 20:43 #408

  • Eugen
  • OFFLINE
  • Moderator
  • Posts: 147
I have been thinking for this feature for a while, and I think it would greatly improve the way the component displays studies and other information.

Here is a general idea of how it could work:

First create a "templates" section in the component. A template can be created for: "SutdyList", "StudyView", "TeacherView", "SeriesView", and "Module".

There will be predefined tags for each template type. For example, for a "studyList" and "StudyView" template, the following tags could be available:

[studyDate]
[studyTitle]
[studyDescription]
[studyScripture]
[studyScripture2]
[studySecondaryReferences]
[studyTeacher]
[studySeries]
[studyTopic]
[studyMessageType]
[studyDuration]
[studyComments]
[studyText]


So when creating a "studyList" template, the template could look something like this:

<tr>
<td width="60%">[studyTitle]</td>
<td>[studyDescription]</td>
<td>[studyScripture]</td>
<td>[studyTopic]</td>
<td>[studyTeacher]</td>
<td><span class="small">[studyDuration]</span></td>
</tr>

If this would eventually be implemented, the component would not have the Position settings, or any other settings relating to the frontend layout. I would like to know what other people think about this...

Re:Templating Idea 04 May 2009 20:20 #853

I think that is a great idea. As long as the template used standard HTML and the editor used was the standard Joomla editor I would be real happy with that.

Re:Templating Idea 04 May 2009 20:36 #855

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
We need to come up with a standard language - and this could be done as a plugin which would allow the creation of templates within content items.

Like: {biblestudy type}studieslist{/biblestudy}
{biblestudy style}<table width=100%>{/biblestudy}
{biblestudy data}items=5 id=556{/biblestudy}
"You shall know the truth and the truth shall set you free." JC
  • Page:
  • 1
Time to create page: 0.77 seconds