Jump to content

New module MarkInPageTree


benbyf
 Share

Recommended Posts

Think that’s a great idea! Havent seen the file rename and replace before so not sure how that relates but wouldn’t be much work to get he module to work with specific permissions and give a default and permissions to hook into as options.

 

Link to comment
Share on other sites

  • 1 year later...
  • 4 years later...

Hi @benbyf, just wanted to let you know that it looks like a newer version of Processwire might have broken this module a little.  It still outputs the names of the templates in the page tree, but they aren't floated to the right anymore.

I think it just needs the following added to the module's css:

.align_right{
    float: right;
    margin: 0 0 0.5em 1em;
}

since it looks like this css was removed from Processwire:

.pw-align-right, .align_right, .align-right {
  float: right;
  margin: 0 0 0.5em 1em; }

Though it might be safer to include a css class just for this module instead of just using a generic class of .align_right?

Also the comments at the top of the .module still show DeferredPublish

Kind regards

Edited by gmclelland
Added some more details to the css
Link to comment
Share on other sites

  On 4/2/2025 at 2:15 PM, gmclelland said:

Hi @benbyf, just wanted to let you know that it looks like a newer version of Processwire might have broken this module a little.  It still outputs the names of the templates in the page tree, but they aren't floated to the right anymore.

I think it just needs the following added to the module's css:

.align_right{
    float: right;
    margin: 0 0 0.5em 1em;
}

since it looks like this css was removed from Processwire:

.pw-align-right, .align_right, .align-right {
  float: right;
  margin: 0 0 0.5em 1em; }

Though it might be safer to include a css class just for this module instead of just using a generic class of .align_right?

Also the comments at the top of the .module still show DeferredPublish

Kind regards

Expand  

Hi @gmclelland what version of PW? Just checked on PW 3.0.229 and seems to be fine.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...