Confused...

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Thu Feb 17, 2011 4:47 pm
So I've made quite some websites before, but the last one was some time before with an older version of Joomla and using a template from another organisation.

My problem is this, I've figured out that in /templates/gk_postnote/layouts I can change the index page by editing default.php, as well as the associated blocks in the blocks/ folder. However, for the life of me I cannot figure out where the files are that are needed for editing the files that are used to generate sub-pages, such as those under 'latest work' or anything else.

This is probably incredibly obvious, but I'm staring myself dead here and would appreciate some help. :)
User avatar
Junior Boarder

GK User
Thu Feb 17, 2011 9:58 pm
Latest works are linked to k2 item view so you need to check k2 layouts files. Standard Joomla articles, categories code you can find in template directory /html/com_content where are php files for this views.
User avatar
Platinum Boarder

GK User
Fri Feb 18, 2011 10:10 am
Thank you, I've never used K2 before and wasn't aware that it had this functionality. You've certainly pointed me in the right direction, reading all the K2 documentation now.
User avatar
Junior Boarder

GK User
Fri Feb 18, 2011 12:06 pm
Ok, I've read all the K2 documentation (or lack thereof!) and it's starting to all make sense to me know. I pretty much understand what K2 does and how it works, and I'm starting to get to grasps with how to change the Gavick template.

The frontpage layout is determine by "default.php" which resides in the directory /templates/gk_postnote/layouts, with the styles determined by gk_stuff which resides in the /tempaltes/gk_postnote/css folder.

Then within /components/com_k2/templates you have the generic.php file which drives the layout of 'k2container' div, with its subsequent elements such as 'item' in the 'default' folder, which allow me to changes the look of 'items' the 'comment form', etc. And the styles are determined by 'k2.css' which resides within the '/templates/gk_postnote/css' folder.

The one thing that eludes me before I can start changing things around is in which php file the 'gk_right' div is defined. If you look at an item page, such as for example the 'Lacoste Concept' page, then the basic structure is as follows:

<div id="gk-container">
<div class="static clearfix">
<div id="gk-mainbody" style="width: 76%;"></div>
<div id="gk-right" style="width: 24%;"></div>
</div>
</div>

Within the 'gk-mainbody' div is the 'k2container' div nested, which uses 'item.php' and 'item_comments_form.php'. However, for the life of me I cannot find how I can change what is in the 'gk-right' div, things such as the photo of Robert Moofito, his 'about me' bit, the tag cloud, etc. Basically I want to rip most of that out completely, and replace it with a different div structure in order to hold other modules and/or content.

In the module manager of Joomla I can see the modules that are placed in the right_bottom and right_top positions, but that doesn't allow me to, for example, completely deleted the 'gk-right' if I would wish to do so.
User avatar
Junior Boarder

GK User
Fri Feb 18, 2011 3:57 pm
If there are no modules assigned to the gk_right (right) module position it will collapse automatically. You can test that by simply un-publishing all the modules currently published in that position.
User avatar
Expert Boarder

GK User
Fri Feb 18, 2011 4:53 pm
Brilliant, that'll solve that issue.

However, it hasn't completely answered my question yet. Perhaps I'm being too detailed, but I just wish to understand how the template has been built up. If you look at the module positions, in which php file(s) are the div's specified that set up this structure?

I'm fairly confident that I can do what I need to do with this setup for the modules, but it helps if I understand how the template works. :)
User avatar
Junior Boarder

GK User
Fri Feb 18, 2011 11:11 pm
The module positions are defined in different files, all of them you find in template/layout/blocks
User avatar
Platinum Boarder


cron