Thursday 05 March 2009 12:52:47 am
Hi Eason, if you want to create an view line of an node (for example for the content classe article ), first of all you must create an folder named line in for example
... override/templates/node/view/line/
directory. after this create an override rule in your override.ini like this :
[line_article_]
Source=node/view/line.tpl
MatchFile=node/view/line/article.tpl
Subdir=templates
Match[class_identifier]=article
the difference between the full view and the line view for me is that:
the full view is used to display all the attributes of the current node
but the line view is used for example if you want to display some attributes of an content class if you are in an node who is an container (like a folder content class). i think this can help you.
The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.
Albert Einstein
|