• 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

Marek 07 Dec 2017, 11:53

Hi, Pablo.
How did you create a hook?

Pablo 07 Dec 2017, 12:03

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..

Marek 07 Dec 2017, 12:06

try how it work without condition:

{if ($page.page_id == ‘XX’)}
Pablo 07 Dec 2017, 12:35

It´s not working, nothing happen ,only adding this:

    {block name='cms_content'}
      {hook h='xxxx'}
    {/block}
    {/if}
Marek 08 Dec 2017, 14:06

give me a link to page where the slider should be

Marek 08 Dec 2017, 14:27

Now I can’t connect to your server through FTP to check module files. Please check details in your profile

Pablo 08 Dec 2017, 14:30

I update the pass, now it should be work.

Marek 08 Dec 2017, 14:38

strange issue.
Try to rename your hook (or create new one) to SS17FILM (don’t use “-”)

Pablo 08 Dec 2017, 14:44

I know its strange,
I create new hook : “films” but nothing…

Marek 08 Dec 2017, 14:51

Now it works. Please check it out

Pablo 08 Dec 2017, 14:56

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

Marek 08 Dec 2017, 15:21

try your code

{if ($page.page_id == ‘XX’)}
Pablo 08 Dec 2017, 15:35

i try:

  {if ($page.page_id == ‘61’)} 
  {hook h='displayFilms'}
    {/if}

but blank page… any ideas?

Marek 08 Dec 2017, 16:07

because there is no such variable “page_id” try following to see what is available

{$page|print_r}

I can suggest next way:

{if ($page.meta.title == 'YOUR_TITLE')} 
Pablo 08 Dec 2017, 16:16

Nothing yet..
i try:

 {if ($page.meta.title == 'Films_RESET_PRIORITY')} 
  {hook h='displayFilms'}
  {/if}

and this:

 {if ($page.meta.title == 'Films RESET PRIORITY')} 
  {hook h='displayFilms'}
  {/if}
Marek 08 Dec 2017, 16:17

Use this to see page title

{$page|print_r}
Pablo 08 Dec 2017, 16:18

like this???

 {if ($page.meta.title == 'Films_RESET_PRIORITY')}
  {$page|print_r}
  {hook h='displayFilms'}
  {/if}

?

Marek 08 Dec 2017, 16:20

not, put it before condition “if” and see on your page, you will see there some code where you will find “true” page title

Pablo 08 Dec 2017, 16:23

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

Marek 08 Dec 2017, 16:24

Pablo 08 Dec 2017, 16:36

Thanks its working,
but when i change the laguage how can add another page, like this?

{if ($page.meta.title == 'films, Videos')}
  {hook h='displayFilms'}
  {/if}
Pablo 08 Dec 2017, 16:53

I found it, thanks now its working in both

Pablo 09 Dec 2017, 11:32

I found it, thanks now its working in both

Pablo 21 Jan 2018, 12:14

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

Marek 21 Jan 2018, 12:15

I see js eddor what comes from amazon module. Try to disable it and check out the issue

Pablo 21 Jan 2018, 13:48

Hi Marek,
I disable amazon but nothing, any idea??

Marek 22 Jan 2018, 13:20

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…