jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: phoenix on 17.01.2015 16:17:07

Title: Problem Overview in Category List Box and Navigation and question re search
Post by: phoenix on 17.01.2015 16:17:07
Jambo,
I activated the category list box and created subcategories, you can see it here in the frontend:
http://www.phoenix-safaris.com/index.php/en/specialoffers-2

When you choose one category and then go back to overview in the list or the textlink, it brings you back to the component which shows only the categories, not the inital page - is there a way to change this?

The second question is: is it possible to include the search field in the navigation? I only want to use the "standard setting" and then after searching go to the search result pages?

Thanks,
Iris
Title: Re: Problem Overview in Category List Box and Navigation and question re search
Post by: ColinM on 18.01.2015 15:03:09
Hi
Just so I understand:
1.the initial page is http://www.phoenix-safaris.com/index.php/en/specialoffers-2

2. Selecting say the Flyers Category from the categories pull down takes one to  http://www.phoenix-safaris.com/index.php/en/specialoffers-2/category/5-flyers

3.On that page the Up button link is <a href="/index.php/en/component/jdownloads/category/4-print-ads">Up</a>
And the Overview button is <a href="/index.php/en/component/jdownloads/">Overview</a> .Both of these take the user to the 'internals' of the jDownloads categories.


What you would like is a button that took you back to the preceding page, that is in this case http://www.phoenix-safaris.com/index.php/en/specialoffers-2
Or putting it another way you would like something the same as the BACK_ZURUCK button at the foot of the page as this does the job as it has the correct link
   BACK_ZURUCK

Achieving such a capability should not be difficult by editing the Sub header layout but requires a little technical knowledge
Basically where the Up and its image are located then code such as <a href="javascript:history.back(-1)"> or <INPUT TYPE="button" VALUE="Back" onClick="history.go(-1)" class="jdbutton jorange"> needs to be inserted.  One cand do similar for the Overview button but taking one back to a definite location.

The picture attached shows an example of what 'replacing' the Up text and image could look like in a very simple way without needing to add extra css.

I will write some more notes when I have done the full thing.
Colin

[gelöscht durch Administrator]
Title: Re: Problem Overview in Category List Box and Navigation and question re search
Post by: ColinM on 18.01.2015 20:32:46
Hi
I have now made a few more notes as illustrated in the attached pics.  Before doing any changes I suggest you look at the following articles:
  Custom css in http://www.jdownloads.net/documentations/item/custom-css
  Editing Layouts  http://www.jdownloads.net/documentations/item/editing-a-layout
  Simple example of layout editing  http://www.jdownloads.net/documentations/item/simple-example-of-layout-editing


There are two stages, one is adding css code to jdownloads_custom.css and the other is modifying  a Layout

The css code I included in jdownloads_custom.css is below
/*
make '3D' look
*/
.jorange, .jblue, .jred, .jgrey {
    border-width: 5px;
    border-style: outset;
}
/*
   back button
*/
.jd_back_button2A {
    display: block;
    line-height: 2em;
    width: auto;
    padding: 0px 10px 0px 6px;
    border-radius: 50%;
    color: #FFF;
}
.jd_back_button2A:hover {
    background-color: rgba(54,88,135,1);/*hovercolor*/
}


The layout that needs editing is in Standard Category Layout v2.5
Originally it was
<table class="jd_top_navi" width="100%" style="border-bottom: 1px solid #cccccc;">
<tr valign="top" border="0px">
<td style="padding:5px;">{home_link}</td>
<td style="padding:5px;">{search_link}</td>
<td style="padding:5px;">{upload_link}</td>
<td style="padding:5px;">{upper_link}</td>
<td style="padding:5px;" align="right" valign="bottom">{category_listbox}</td>
</tr>
</table>


The revised code in  is in Standard Category Layout v2.5 (2)
the /lorem-ipsum is taken from a menu link to the place I want people to go to when they leave the download section.
<table class="jd_top_navi" width="100%" style="border-bottom: 1px solid #cccccc;">
<tr valign="top" border="0px">
<td colspan="2" style="padding:5px;">Standard Category Layout v2.5 (2) -<b>Header</b></td>
</tr>
<tr valign="top" border="0px">
<td style="padding:5px;"  width="15%"><a href="/lorem-ipsum" class="jd_back_button2A jorange">Lorem</a></td>
<td style="padding:5px;" width="15%">{search_link}</td>
<td style="padding:5px;" width="15%">{upload_link}</td>
<td style="padding:5px;" width="15%"><input type="button" value="Back" onClick="history.go(-1)" class="jd_back_button2A jorange"></td>
<td style="padding:5px;" align="right" valign="bottom">{category_listbox}</td>
</tr>
</table>


Colin


[gelöscht durch Administrator]
Title: Re: Problem Overview in Category List Box and Navigation and question re search
Post by: phoenix on 28.01.2015 18:49:43
Thanks for this - its not a big deal i can do css its a bit difficult to get the clue about this different templates and which one is used where ... - i just thought i might have some missconfiguration somewhere ...

The second questions would actually be more important - is it possible to add a searchfield directly without having to link to the search page?
Title: Re: Problem Overview in Category List Box and Navigation and question re search
Post by: ColinM on 28.01.2015 21:19:01
Hi
Some other people are also asking about customising via css and what is where. So I am writing a note for the documentation.

Reget to say I do not know if this is available at the moment.  Are you looking for something like {jDownloadsSearch term=qwerty} ?

Colin