-
AuthorPosts
-
July 6, 2014 at 12:34 pm #199455
Hi,
I have installed the latest T3 plugin and installed the Purity iii template on my J3.3.1 siteI have followed the tutorial http://www.joomlart.com/tutorials/joomla-tutorials/adding-joomla-custom-fields-in-form-with-t3-framework but cannot get the Masthead fields to appear in my menu items.
I have installed a quickstart on a test domain to look at the files and have even tried copying over the com_menu.items.xml and still the 2 fields won’t appear on my site.
I want it to appear like on the quickstart under the Page Display tab. I have even had a look at this article http://t3-framework.org/documentation/extend-com-content.html#add-extra-fields and still no luck.
My understanding is that once I place the com_menu.items.xml in the public_html/templates/purity_iii/etc/form directory then it should appear?
I have also check i have the masthead.php file in the public_html/templates/purity_iii/tpls/blocks directory.
what else do i need to do?
thanks
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 7, 2014 at 7:41 am #541352I’m not sure what did you do on your site? But I see Masthead extra field is working under Page Display tab, see the screenshot
I did follow the userguide http://www.joomlart.com/tutorials/joomla-tutorials/adding-joomla-custom-fields-in-form-with-t3-framework and make com_menus.item.xml with script
<?xml version="1.0" encoding="utf-8"?>
<form>
<fields name="params">
<fieldset name="extra-field" label="Extra field" description="Extra field description">
<field name="masshead-title" type="text" default="" label="Masshead title" description="Masthead title" />
<field name="masshead-slogan" type="textarea" default="" label="Masshead slogan" description="Masthead description" filter="RAW" />
</fieldset>
</fields>
</form>
and you can see the extra field as screenshot
Please try to check it again
-
July 7, 2014 at 11:38 am #541399
I have tried both, but i would prefer the 2 fields to show under the Page Options tab, not an additional extra tab
So, i tried copying this code into a file called com_menus.item.xml and put it in public_html/templates/purity_iii/etc/form
<?xml version="1.0" encoding="utf-8"?>
<form>
<fields name="params">
<fieldset name="page-options" label="Page Display" description="Page Display Description">
<field name="masthead-title" type="text" default="" label="TPL_MENU_ITEM_MASTHEAD_TITLE_LABEL" description="TPL_MENU_ITEM_MASTHEAD_TITLE_DESC" />
<field name="masthead-slogan" type="textarea" default="" label="TPL_MENU_ITEM_MASTHEAD_SLOGAN_LABEL" description="TPL_MENU_ITEM_MASTHEAD_SLOGAN_DESC" filter="RAW" />
</fieldset>
</fields>
</form>but i dont see any fields when i click on a menu item. see my attachment. this is the code i found that the xml was using in the quickstart that i know works correctly. The code in the article, seems to have a few typo mistakes
<field name=”masshead-title” i think should be <field name=”masthead-title”
<field name=”masshead-slogan” i think should be <field name=”masthead-slogan”because in the masthead.php it has:
$mast_title = $activemenu->params->get (‘masthead-title’);
$mast_slogan = $activemenu->params->get (‘masthead-slogan’);i dont know what else to try. i cleared my browser cache and refreshed.
is there anything else to do to make the fields appear on my site?
July 7, 2014 at 11:46 am #541400Also, something else i don’t understand is that the article says that you need to add the masthead block to your layout
<blockquote>Load masthead block in layouts
Open layout file (templates/t3_bs3_blank/tps/) that you want to load masthead block then load masthead block after header block.
<?php $this->loadBlock(masthead) ?>
</blockquote>However, when i look at all the layout files that come with the quickstart none of them have this block loaded, yet the masthead still works and displays on the quickstart.?????? i am very confused
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 8, 2014 at 6:56 am #541484July 9, 2014 at 1:20 pm #541733Thanks for the reply but that is no help. I know what it should be looking like, I am trying to get it to work like this
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 10, 2014 at 3:07 am #541798<em>@woonydanny 435916 wrote:</em><blockquote>Thanks for the reply but that is no help. I know what it should be looking like, I am trying to get it to work like this</blockquote>
You can pm me the information of your site: URL, admin login, FTP credentials of your site and I shall help you out.
July 10, 2014 at 9:52 am #541859pm sent to you just now
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 11, 2014 at 6:23 am #541946<em>@woonydanny 436064 wrote:</em><blockquote>pm sent to you just now</blockquote>
I found the problem on your site, because you did not set Purity III Template as default. That’s the reason why extra field did not load on your site. I set it as default and it’s working fine, see the screenshot
-
2 users say Thank You to Ninja Lead for this useful post
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by Ninja Lead 10 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum
Creating Masthead on non-quickstart template
Viewing 9 posts - 1 through 9 (of 9 total)