I am wondering what the term "relations" means in context of Magellan?
For example, when I create a template or a file there is an option of clicking on the word "relations" in the list of pages or templates. The following screen then allows me to select a page, submit that selection and then a new column appears where I can submit a deselection, if I choose.
So, in that process, what does relations mean?
To me, it appears to be some sort of association of that particular file or template with another file but for a purpose unknown to me.
Any ideas?
Danka!
John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The relations mechanism is a way to associate elements to a page or to a template. If you install other modules that extends Magellan (there are many of them that I have to release but yet in production phase), these modules may add new types of elements. These elements may be associated to the single pages or to all the pages using a certain template.
E.g. the newspages module used in the Ampoliros site to submit news adds the "Newspages" relations type. I create the news and then with the relations button I choose where the news are to be displayed. Obviously the template should contains the new tags defined by the newspages module, otherwise nothing about the news is displayed.
Alex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
These tags are present so that IF I choose to make a relation between a news item and the page with this template THEN the news articles will appear.
So, I could spread these tags throughout my templates and nothing would be displayed at those tag locations unless I start "wiring them up" by making relations between pages and templates.
It's like lego.
:-)
John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And the code between the <!--@BEGIN...-> and <!--@END...-> tags is repeated as many times as the number of associated elements of that type. So if you have associated two news lists (in the newspages module the news are organized by lists), that block of code is repeated twice, with the first related news list and second one.
Alex
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am wondering what the term "relations" means in context of Magellan?
For example, when I create a template or a file there is an option of clicking on the word "relations" in the list of pages or templates. The following screen then allows me to select a page, submit that selection and then a new column appears where I can submit a deselection, if I choose.
So, in that process, what does relations mean?
To me, it appears to be some sort of association of that particular file or template with another file but for a purpose unknown to me.
Any ideas?
Danka!
John
The relations mechanism is a way to associate elements to a page or to a template. If you install other modules that extends Magellan (there are many of them that I have to release but yet in production phase), these modules may add new types of elements. These elements may be associated to the single pages or to all the pages using a certain template.
E.g. the newspages module used in the Ampoliros site to submit news adds the "Newspages" relations type. I create the news and then with the relations button I choose where the news are to be displayed. Obviously the template should contains the new tags defined by the newspages module, otherwise nothing about the news is displayed.
Alex
Oh,
So, in the en-standard.txt file, I can see the following html and tags:
<!-- begin news pages -->
<!--@BEGINNEWSPAGES-->
<table border="0" width="100%" cellspacing="0" cellpadding="6">
<tr>
<td width="100%" valign="top"><p class="boldbig"><!--@NEWSPAGENAME--></p><p class="normal"><!--@NEWSPAGEDESC--></td>
</tr>
<!-- begin news item -->
<!--@BEGINNEWSITEMS-->
<tr>
<td width="100%" valign="top"><p class="boldbig"><!--@NEWSITEMDATE--> - <a href="<!--@NEWSITEMLINK-->"><!--@NEWSITEMTITLE--></a></p><p class="normal"><i><!--@NEWSITEMSUMMARY--></i></td>
</tr>
<!--@ENDNEWSITEMS-->
<!-- end news item -->
</table>
<!--@ENDNEWSPAGES-->
<!-- end news pages -->
These tags are present so that IF I choose to make a relation between a news item and the page with this template THEN the news articles will appear.
So, I could spread these tags throughout my templates and nothing would be displayed at those tag locations unless I start "wiring them up" by making relations between pages and templates.
It's like lego.
:-)
John
Exactly :-)
And the code between the <!--@BEGIN...-> and <!--@END...-> tags is repeated as many times as the number of associated elements of that type. So if you have associated two news lists (in the newspages module the news are organized by lists), that block of code is repeated twice, with the first related news list and second one.
Alex