How can I restrict the results to the current folder (and below) ?
Thanks
--
You received this message because you are subscribed to the Google Groups "EEA Faceted Navigation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eea-facetednavig...@googlegroups.com.
To post to this group, send email to eea-facete...@googlegroups.com.
Visit this group at http://groups.google.com/group/eea-facetednavigation?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
-- Alin Voinea Eau de Web (http://www.eaudeweb.ro) 55, Clucerului, ap. 7 - 011364 Bucharest Tel/fax: +40 21 222 1522, Mobile: +40 722 688 168
Hi César,
You can try the following:
1. Add a hidden Path facet and set it's default value to your folder location.
2. Add a hidden TAL Expression facet and set it's default value to python:context.absolute_url(1). If this doesn't work try python:'/Plone/' + context.absolute_url(1) - replace Plone with your Plone portal id.
If it still doesn't work add a Debugger facet and see the real query that is used by facetednavigation and adjust it accordingly. Don't forget to remove the Debugger facet when you're done ;)
Cheers,
Alin
On 05/10/2013 03:04 PM, César Goudouris wrote:
How can I restrict the results to the current folder (and below) ?
Thanks--
You received this message because you are subscribed to the Google Groups "EEA Faceted Navigation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eea-facetednavigation+unsub...@googlegroups.com.
To post to this group, send email to eea-facete...@googlegroups.com.
Visit this group at http://groups.google.com/group/eea-facetednavigation?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Hi César,
You can try the following:
1. Add a hidden Path facet and set it's default value to your folder location.
2. Add a hidden TAL Expression facet and set it's default value to python:context.absolute_url(1). If this doesn't work try python:'/Plone/' + context.absolute_url(1) - replace Plone with your Plone portal id.
If it still doesn't work add a Debugger facet and see the real query that is used by facetednavigation and adjust it accordingly. Don't forget to remove the Debugger facet when you're done ;)
Cheers,
Alin
On 05/10/2013 03:04 PM, César Goudouris wrote:
How can I restrict the results to the current folder (and below) ?
Thanks--
You received this message because you are subscribed to the Google Groups "EEA Faceted Navigation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eea-facetednavigation+unsub...@googlegroups.com.
To post to this group, send email to eea-facete...@googlegroups.com.
Visit this group at http://groups.google.com/group/eea-facetednavigation?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
-- Alin Voinea Avertisment: Acest email poate conține ironii, jocuri de cuvinte, metafore sau epitete. Se recomanda citirea cu atenție a acestuia de mai multe ori dacă este cazul. În cazul în care după 3 recitiri consecutive încă mai aveți nelămuriri luați o pauza de 5 minute, beți o cafea, fumați o țigară (după caz). Dacă simptomele persista adresați-va de urgenta unui specialist (prieten(ă), soț(ie), amant(ă), etc.)
query[index] = value
{'query': ['/Plone/en/some-dir', '/Plone/de/some-dir'], 'operator': 'or'}
python:context.absolute_url(1).startswith('/Plone/en') or context.absolute_url(1).startswith('/Plone/de')