Reputation: 45
I am current studying code from a existing website. I found out that my contact info of the footer is missing somehow. I am suspected this syntax can lead to the problem. Does anyone know what is that? It is in a php file.
Here is the code
<div class="copyright">
<!-- what is the [* *]-->
[*contact*]
<ul class="menu">
<li>[*introtext:ne=``:then=`[*introtext*]`:else=`[[DocInfo? &docid=`[*parent*]` &field=`introtext`]]`*]</li>
<!-- <li><a href="#">[[lang_variable? &text=`terms`]]</a></li>
<li><a href="#">[[lang_variable? &text=`privacy`]]</a></li> -->
</ul>
</div>
Upvotes: 0
Views: 76
Reputation: 18853
Since it appears to be the answer, I will add it as such. The code you posted seems to related to MODx, which is a CMS and has it's own templating system. Hopefully that gets you where you need to be.
To elaborate more fully. MODx is a paid Content Management System (CMS) that has a template structure similar to what was posted through browsing the MODx support forums. Since the MODx requires money to have it's code, I'm unable to provide more support for this without seeing further source code.
A template structure allows developers to give access for changing how a page, email, or other items look without requiring access to the code to change.
Below is an excerpt of a template from the MODx documentation page on their template system:
<html>
<head>
<title>[[*pagetitle]]</title>
<meta name="description" content="[[*description]]"/>
</head>
<body>
<h1>[[*longtitle]]</h1>
Page ID: [[*id]]<br/>
IntroText (Summary): [[*introtext]]<br/>
MenuTitle: [[*menutitle]]
<hr/>
[[*content]]
</body>
</html>
Upvotes: 1