T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. Alvaro
  2. Sherlock Holmes
  3. General Discussion
  4. Wednesday, 26 November 2014
  5.  Subscribe via email
The Purity template created based on t3 make some modifications to com_content, to create new layotus.

They have created the layout Portfolio, for giving us the option to load a Article Layout, with the following

<field name="article_layout" type="componentlayout"
label="Article Layout"
description="JFIELD_ALT_COMPONENT_LAYOUT_DESC"
useglobal="true"
extension="com_content" view="article"
/>


This loads the default option: Use Global; what I would like is to know how to modify the code to load the default purity_iii/html/com_content/article/portfolio.php file is Article layout for the portfolio.

or if I can provide any documentation xml options I have for com_content

From already thank you very much.
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Alvaro,

The portfolio layout is an overridden layout in Purity III template, to use the layout, in the menu item setting, please select "Articles > xLayout - Portfolio" menu type then the items loaded in the menu will use the portfolio overridden layout. Here is the menu configuration: http://easycaptures.com/fs/uploaded/930/4044082195.png

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
To which you refer is a layout for the category.

what I mean is the Article Layout. which by default is: Use Global; as I show in this picture.

Title

What I would like is to know how to modify the code that I showed you so that the Article Layout displays a default template that I specify in the .xml file. As shown in this picture.

Title

Gardner thank you very much for answering my queries.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Alvaro,

To make uni-blog as default for Article layout, please open the file: templates\purity_iii\html\com_content\category\portfolio.xml, replace the code:

<field name="article_layout" type="componentlayout"
label="Article Layout"
description="JFIELD_ALT_COMPONENT_LAYOUT_DESC"
useglobal="true"
extension="com_content" view="article"
/>


with:

<field name="article_layout" type="componentlayout"
label="Article Layout"
description="JFIELD_ALT_COMPONENT_LAYOUT_DESC"
useglobal="true"
extension="com_content" view="article"
default="purity_iii:uni-blog"
/>


Please let me know if you have any further concern.

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you very much, works perfect.

Another thing I've tried is to make the pagination this Hidden by default. but I have failed unless you erase the Global and Show Options.
<field name="show_pagination_results" type="list"
label="JGLOBAL_PAGINATION_RESULTS_LABEL"
description="JGLOBAL_PAGINATION_RESULTS_DESC">

<option value="0">JHIDE</option>
</field>

Is there another way to accomplish without delete the other 2 options?

I've tried changing the order, but does not work. thank you very much for your answer're a genius.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hi again,

You mean the pagination as shown in the screenshot: http://easycaptures.com/fs/uploaded/934/6045330556.jpg

If yes, the pagination is hard fixed in the portfolio layout. Open the file: templates/purity_iii/html/com_content/category/portfolio.php then find the code:

<!-- Pagination -->
<?php
if ($this->pagination->getPagesLinks()): ?>
<div class="pagination-wrap">
<?php echo $this->pagination->getPagesLinks(); ?>
<p class="counter pagination-counter">
<?php echo $this->pagination->getPagesCounter(); ?>
</p>
</div>
<?php endif; ?>
<!-- //Pagination -->


If you don't want to display the pagination, just delete the code.

Gardner.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Sure it's perfect. this is how I did it.
but there are other options such as images coming Hidden categories by default. you can do SHOW left in default, from the .xml file


Thanks for all your answers. estimated Gardner
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
You're welcome Alvaro :)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.