CMS MADE SIMPLE FORGE

CGSimpleSmarty

 

[#12411] get_parallel_content() to return only content of active parallel pages

avatar
Created By: Jochen Michels (macyogi)
Date Submitted: 2021-02-02 09:06

Assigned To: Robert Campbell (calguy1000)
Resolution: None
State: Open
Summary:
get_parallel_content() to return only content of active parallel pages
Detailed Description:
Dear calguy1000,
I have developed a huge bilingual site and are using your function
get_parallel_page() for switching between language trees.

However, sometimes we cannot provide a translated parallel page and to keep the
two trees consistent we add an inactive page in the parallel hierarchical tree.
We realized that the function get_parallel_content() will return the content of
the page regardless of its activity status.

By modifying class.cgsimple.php:
396 $newcontent = $contentops->LoadContentFromAlias($new_pageid);
396 $newcontent = $contentops->LoadContentFromAlias($new_pageid, true);

only active pages are returned. I assume that this should be the correct
behaviour of this function.

Maybe you can check and implement the feature that only content of active pages
is returned?

Many thanks
Jochen

History