Pages: [1]
Print
Author Topic: Placeholders in templates  (Read 431 times)
flip
Newbie
*
Posts: 26


« on: May 20, 2010, 09:13:07 PM »

Hello,

- When I use the placeholder "url", then the URL incl. a href-tag with name "Website" is inserted. How can I insert the URL only?
- When I add a css class to the "data_row" section, then it is never shown in the source code in my browser? How can I add classes or id's to html tags within this section?

I would like to link the company names in the result list and use custom font styles for them.

Philip
Logged
Support
Administrator
Jr. Member
*****
Posts: 93



« Reply #1 on: May 20, 2010, 09:55:06 PM »

To customize the Website Link (or Email), edit the function format_tags in the script warpcore/literadius/models/locator_model.php. There you can edit the anchor element. $location['url'] contains the URL value in the location data table.

The rows are dynamically created by appending JavaScript DOM clones of the template table. During this process the class is set for even and odd rows. The easiest way to decorate your company name is to extend the css definition radius_tbl in literadius/views/js_css/literadius.css to something like this:

Quote
.radius_tbl p {
      background-color: red;
   font-weight : bold;
}

then within the template surround name variable with the element like:
Quote
<p>name</p>
Logged
flip
Newbie
*
Posts: 26


« Reply #2 on: May 22, 2010, 09:22:46 AM »

Thank you. That solved the issue.
Logged
Pages: [1]
Print
Jump to: