How to create a new template position

More
12 years 1 month 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
12 years 1 month 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
12 years 1 month 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
12 years 1 month 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 review. Thanks!

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

More
12 years 1 month 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
12 years 1 month 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 review. Thanks!

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

More
12 years 1 month ago #43598 by micker
copy code of item.php (in tmpl_common) in your item.php
after you can do your position

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
12 years 1 month ago #43603 by gkhn
I could not find item.php in templ_common

THis is the pathway I followed
/components/com_flexicontent/tmpl_common/item_layouts
I have a modular.php and modular html5. These are the files am I after? :)
Thank you

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

More
12 years 1 month ago #43604 by gkhn
I think I figured it out...THis is just amazing...

I can place an image field and text field.

Image can float right and text field can just be old boring text field BUT it does not effect image.

+ you dont need to float right the image everytime you create an article. Thank you flexicontent :)

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

More
12 years 1 month ago #43614 by gkhn
Hi there,

I have created the template but I would like to create a table inside a content. How can I create a table so that it can be submitted using front end?

The idea is to simplify the table creation process so that users do not need to deal with wyswig editor to create an add content to table. thank you.

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

Moderators: vistamediajoomlacornerggppdk
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
Save