How to insert data into the template

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Apr 05, 2013 5:32 pm
Reply with quote
Report this post
How to insert data into the template! An undated news site is a failure...
User avatar
Junior Boarder

Konrad M
Fri Apr 05, 2013 5:35 pm
Reply with quote
Report this post
Hi,
can you explain little more what would you like to achieve ?
User avatar

GK User
Sun Apr 07, 2013 3:01 am
Reply with quote
Report this post
Sample... 06 april of 2013
User avatar
Junior Boarder

Konrad M
Sun Apr 07, 2013 7:58 pm
Reply with quote
Report this post
Yes, but where you want to put it. In some News Show Pro GK4 module or somewhere in template ?
User avatar

GK User
Sun Apr 07, 2013 8:20 pm
Reply with quote
Report this post
In template
User avatar
Junior Boarder

Konrad M
Mon Apr 08, 2013 8:28 am
Reply with quote
Report this post
Well, you have to go to layouts/defaulyt.php and paste somewhere php code with date. Here you have info how dispay date in php http://php.net/manual/pl/function.date.php
User avatar

GK User
Mon Apr 08, 2013 10:08 pm
Reply with quote
Report this post
Konrad M wrote:Hi,
can you explain little more what would you like to achieve ?


I'd like to put the date somewhere in the home, for those internet learning that the site is updated!
User avatar
Junior Boarder

Konrad M
Tue Apr 09, 2013 6:52 am
Reply with quote
Report this post
So you need put php code with date inside div with some id. For example:
Code: Select all
<div id="myDate">
 /* here put your php code */
</div>

and then you have to add suffix to home page. You can do this in template settings in features section. For example ' home'.
Then you will have to add to override.css
Code: Select all
#myDate {
    display:none;
}
.home #myDate {
    display:block !important;
}

andremember to enable override.css option in template settings.
User avatar


cron