The Big Spring Sale! Up to 50% off!

Module page visibility

nerviroberto
78 Posts
nerviroberto posted this 03 September 2020
Report a bug

a nicepage template.
with some joomla named positions
in joomla I have a module that shows in the defined position.
page visibility: On all pages.

we do some nicepage source update, we export joomla template.
we reload it into joomla. we open template and "import content from template" with "replace existing material"

the page visibility for those modules is moved " ON ALL PAGES EXCEPT SELECTED PAGES"

Result is that all positions will be off !
We've to repass one by one resetting to - at least - " on all pages"....

would be great OR ask for this reset or let it as we set...
ty

a nicepage template. with some joomla named positions in joomla I have a module that shows in the defined position. page visibility: On all pages. we do some nicepage source update, we export joomla template. we reload it into joomla. we open template and "import content from template" with "replace existing material" the page visibility for those modules is moved " ON ALL PAGES EXCEPT SELECTED PAGES" Result is that all positions will be off ! We've to repass one by one resetting to - at least - " on all pages".... would be great OR ask for this reset or let it as we set... ty
Vote to pay developers attention to this features or issue.
4 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 03 September 2020

Hi,

This issue happens during content import and this is behavior by default.
But we added your request to our wish list.
Please let us know if you have any further questions.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, This issue happens during content import and this is behavior by default. But we added your request to our wish list. Please let us know if you have any further questions. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
nerviroberto
78 Posts
nerviroberto posted this 04 September 2020

not 4 now ty

closed

not 4 now ty #closed
nerviroberto
78 Posts
nerviroberto posted this 18 September 2020

real boring reset each module used for any template change, and can be forgotten one....
please let us control this behavior via a simple checkbox
I guess day by day increments of mixed usage with modules

real boring reset each module used for any template change, and can be forgotten one.... please let us control this behavior via a simple checkbox I guess day by day increments of mixed usage with modules
nerviroberto
78 Posts
nerviroberto posted this 28 February 2021

Solved this way:
- prefix all position used by "nice_"

fire this stored (change accordingly position prefix and table name prefix) and

this will self set to "on all pages" all modules which prefix is "nice_%"

 BEGIN

/* declare used vars */
  DECLARE module_id int;
  DECLARE done bit;


-- get a module id list which prefix matches, we need a cursor 
   DECLARE cur1 CURSOR FOR SELECT id FROM ch3_modules WHERE position LIKE 'nice_%'; 
   declare continue handler for not found set done=1;

   set done = 0;

   open cur1;

GetAnother: LOOP

    fetch cur1 INTO module_id;
   IF done = 1 THEN LEAVE GetAnother; END if;

  -- manage this id
  -- SELECT module_id;

  -- erase id instances
  DELETE FROM ch3_modules_menu WHERE  moduleid = module_id;

  -- and now reset for "on all pages"

  INSERT INTO ch3_modules_menu (`moduleid`, `menuid`) VALUES  (module_id,0);

END loop GetAnother;

close cur1;

END
Solved this way: - prefix all position used by "nice_" fire this stored (change accordingly position prefix and table name prefix) and this will self set to "on all pages" all modules which prefix is "nice_%" ------------------------------------------------------- BEGIN /* declare used vars */ DECLARE module_id int; DECLARE done bit; -- get a module id list which prefix matches, we need a cursor DECLARE cur1 CURSOR FOR SELECT id FROM ch3_modules WHERE position LIKE 'nice_%'; declare continue handler for not found set done=1; set done = 0; open cur1; GetAnother: LOOP fetch cur1 INTO module_id; IF done = 1 THEN LEAVE GetAnother; END if; -- manage this id -- SELECT module_id; -- erase id instances DELETE FROM ch3_modules_menu WHERE moduleid = module_id; -- and now reset for "on all pages" INSERT INTO ch3_modules_menu (`moduleid`, `menuid`) VALUES (module_id,0); END loop GetAnother; close cur1; END
You must log in or register to leave comments