- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Marek
- Private: No
- Open Date: 06.12.17, 18:57
- Opened by: Pablo
- Closed by: Marek
- Closed on: 04.05.18, 23:36
- Reason: Closed
- Comment: Glad to help!
Ticket #11225 - Revolution Slider CMS page
Hi Marek,
I tried to hook revolution slider to a CMS page but, it´s not working.
I create de hook and i´ve put it on page.tpl ( alysum/templates/cms/) like this:
{hook h=’xxxx’}
i try it this to:
{if ($page.page_id == ‘XX’)}
{block name='cms_content'} {hook h='xxxx'} {/block} {/if}
Any advice?
thanks.
Comments
Hi, Pablo.
How did you create a hook?
Hi,
I´ve created the hook in two different ways:
-1. inside the module rev. sliders
-2. inside module folder/ revsliderprestashop/hook/hook.php…. ‘customhookname’ ⇒ ‘XXXX’
but nothing..
try how it work without condition:
It´s not working, nothing happen ,only adding this:
give me a link to page where the slider should be
Here:
https://test.resetpriority.com/en/content/films
Now I can’t connect to your server through FTP to check module files. Please check details in your profile
I update the pass, now it should be work.
strange issue.
Try to rename your hook (or create new one) to SS17FILM (don’t use “-”)
I know its strange,
I create new hook : “films” but nothing…
Now it works. Please check it out
I see thanks,
You create a new hook, and add {hook h=’displayFilms’} but I only need that hook on page id=61,
how its the correct code?
Thanks
try your code
i try:
but blank page… any ideas?
because there is no such variable “page_id” try following to see what is available
I can suggest next way:
Nothing yet..
i try:
and this:
Use this to see page title
like this???
?
not, put it before condition “if” and see on your page, you will see there some code where you will find “true” page title
OK,
now how i know wich is the “true” page tittle :)??
Array ( [title] ⇒ [canonical] ⇒ [meta] ⇒ Array ( [title] ⇒ films [description] ⇒ RESET PRIORITY Swimwear Spring Summer 2017 Campaign Film [keywords] ⇒ films [robots] ⇒ index ) [page_name] ⇒ cms [body_classes] ⇒ Array ( [lang-en] ⇒ 1 [lang-rtl] ⇒ [country-ES] ⇒ 1 [currency-EUR] ⇒ 1 [layout-full-width] ⇒ 1 [page-cms] ⇒ 1 [tax-display-enabled] ⇒ 1 [cms-id-57] ⇒ 1 [pm_details_layout1] ⇒ 1 [header_absolute] ⇒ 1 [product-grid-2] ⇒ 1 ) [admin_notifications] ⇒ Array ( ) ) 1
Thanks its working,
but when i change the laguage how can add another page, like this?
I found it, thanks now its working in both
I found it, thanks now its working in both
Hi Marek,
Its weird that rev slider, has stopped working and i can´t see the films again,
i´ll try to create another hook, change it on page.tpl but nothing.
following all the steps we were working.
On Friday 8 Dec. at 13:51 you told me: Now it works. Please check it out
And I don´t know how exactly change it to make it works.
Any idea??
Thanks
https://test.resetpriority.com/en/content/films
Any idea
I see js eddor what comes from amazon module. Try to disable it and check out the issue
Hi Marek,
I disable amazon but nothing, any idea??
Try to add “priority” to your custom scripts like this
I have tried to add it to you, but there is no changes in the scripts order, maybe I just missed some cache or etc…