How to create a new template position

More
10 years 10 months ago #43542 by gkhn
Hi there,

I am trying to create my first flexicontent custom template :)

I created the positions in the item.xml file.
Code:
<group posrow="img_top">second-image</group> <group posrow="img_top">second-top</group>

i can see these positions inside the template. I assinged fields to these positions but I am unable to see these fields at the moment. Could you please let me know what I am missing here.
Thank you.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #43550 by micker
Did you create position in your php ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #43553 by gkhn

micker wrote: Did you create position in your php ?


I couldn't create it because I am not really sure which php file I need to add the position to.

I have tried looking into some template tutorials but it skipped that part.

Thank you.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #43575 by ggppdk
Hello

1. file to edit for category view:
(also used by effects my-items and author views)

category_items.php
and/or category_items_html5.php

2. file to edit for item view:

item.php
and/or item_html5.php


Just find a block :

// BOF (Begin)
...
// EOF (End)

which contains an existing position

copy paste it and change it to have the new position name:

Creating an extra Field POSITION in a custom template


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #43595 by gkhn

ggppdk wrote: Hello

1. file to edit for category view:
(also used by effects my-items and author views)

category_items.php
and/or category_items_html5.php

2. file to edit for item view:

item.php
and/or item_html5.php


Just find a block :

// BOF (Begin)
...
// EOF (End)



which contains an existing position

copy paste it and change it to have the new position name:

Creating an extra Field POSITION in a custom template

Hi there,

This is what I have at the moment inside the item.php
Code:
<?php // Modular item layout // If customizing via CSS rules or JS scripts is not enough, then please copy the following file here to customize the HTML too include(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'tmpl_common'.DS.'item_layouts'.DS.'modular.php'); ?>


I could not find these lines

// BOF (Begin)
...
// EOF (End)

Thank you.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #43597 by ggppdk
Hello

e.g.
<!-- BOF above-description-line1 block -->
..............
<!-- EOF above-description-line1 block -->

it is different in every template,


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.366 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline