Sub-pages in FC?

More
7 years 11 months ago #61547 by lipatovroman
Hi!
Is it possible to create summary pages for downloads?

For example - we have item with main information.

Then user press n button "Download"



And FC opens sub-page with links.



That is, the page has another sub-page.
Thanks.

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

More
7 years 11 months ago #61549 by micker
Replied by micker on topic Sub-pages in FC?
... not with simple configuration ...
to achieve this create 2 templates, displaying same item
1 template with display field and add code for second template
1 template with your file field only

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
7 years 11 months ago #61552 by lipatovroman
Replied by lipatovroman on topic Sub-pages in FC?
Thanks Micker.
If I correct understand this method, I should create 2 templates for 1 item.
So, how to create link from 1-st template to 2-nd template?

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

More
7 years 11 months ago #61823 by lipatovroman
Replied by lipatovroman on topic Sub-pages in FC?
So, how to create link from 1-st template to 2-nd template?

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

More
7 years 11 months ago - 7 years 11 months ago #61845 by ggppdk
Replied by ggppdk on topic Sub-pages in FC?
Hello

It should be easy if you use 2 templates,
- because you display the same item in different ways
using multiple templates that use different HTML and different fields


Lets say you item type is called "Download" (or "Article" or "Car")
- and for "Download" type (in the backend TYPE configuration form) you have selected template:

"download_tmpl" template

if you want to show current item in a different way
then

1. you can create 1 more template in the backend template manager:
"download_tmpl_basic" template

2. Edit "ITEM LAYOUT" of the new template,
and only add some fields, e.g. only add file field in the

3. Edit file item(_html5).php of your normal template "download_tmpl" in backend template manager
- and click copy default code button to get the default PHP code

4. Find the place that you want to link to the other view:
Code:
$url = "//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; $url = $url . (strstr($url, '?') ? '&amp;' : '?') . 'ilayout=download_tmpl_basic'; $escaped_url = htmlspecialchars( $url, ENT_QUOTES, 'UTF-8' ); echo '<a href="' . $escaped_url . '">' . $item->titme. '</a>';

NOTICE that we added to the URL so that you link to the display of the item with the new template:
?ilayout=download_tmpl_basic
or
&ilayout=download_tmpl_basic


-- 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...
Last edit: 7 years 11 months ago by ggppdk.
The following user(s) said Thank You: lipatovroman

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.759 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