Jump to content
a.masca

Problems with roles to add pages

Recommended Posts

Goodmorning everyone,
sorry for the inconvenience but I have a problem that I can't find in any other post.
Strange things happen on a site:
- despite everything being configured correctly (as already done in dozens of other sites) only superusers can create new pages
- if I insert in a selector "include = all" the result is always 0
- I should restore a series of pages incorrectly inserted in the trash, but I cannot select them with the selector "status = Trash"

Some idea?
Thanks so much for your valuable support.

Share this post


Link to post
Share on other sites

In an old project i can see that i put this into find

....parent=/trash/, include=all,....

Was not able to test it. Hope it helps.

Share this post


Link to post
Share on other sites
2 hours ago, huseyin said:

In an old project i can see that i put this into find

....parent=/trash/, include=all,....

Was not able to test it. Hope it helps.

Thank you very much. It works!!

But the other problems still remain.
Especially the fact that only users with superuser role can add pages.

Some idea?

Thank you

Share this post


Link to post
Share on other sites

Please check access settings in the related page template and parent page template.

Share this post


Link to post
Share on other sites
34 minutes ago, kixe said:

Please check access settings in the related page template and parent page template.

Thank you for the suggestion
Already done and everything is ok but the problem is still here ..

only users with superuser role can add pages

thank you anyway

Share this post


Link to post
Share on other sites

My english knowladge is no very well.

I have read your first message after and after but did not understand the problem. Either i was not able to anderstand or there is not enough information to describe the problem.

Do you get any error message while you try to create page with an other user except superuser role. 

Any detail could help to understand the problem.

Share this post


Link to post
Share on other sites
19 hours ago, huseyin said:

My english knowladge is no very well.

I have read your first message after and after but did not understand the problem. Either i was not able to anderstand or there is not enough information to describe the problem.

Do you get any error message while you try to create page with an other user except superuser role. 

Any detail could help to understand the problem.

Hi huseyin
thank you very much for the response.

Also my English is terrible (I'm from Italy) 🙂

I have a test site: https://village.arkenu.it/pw

you can enter with superuser role
id: pwforum
psw: ######## (I can send you via pm)

or with user that have only test_admin role (which should be able to create pages but fails)
id: test_admin
psw: ######## (I can send you via pm)

Thank you very much for any ideas!!

Andrea

 

Share this post


Link to post
Share on other sites

sorry, wanted to try something and now i cant access the admin page.😌

at last action i changed the access option for the admin template to "No". See attached image.

after this setting the admin login disappeared.

Hope this can be reverted from the database.🙏

admin.jpg

Share this post


Link to post
Share on other sites
2 minutes ago, huseyin said:

sorry, wanted to try something and now i cant access the admin page.😌

at last action i changed the access option for the admin template to "No". See attached image.

after this setting the admin login disappeared.

Hope this can be reverted from the database.🙏

admin.jpg

No problem, now is ok.

Thank you very very much for watching my problem!!!

Share this post


Link to post
Share on other sites

Did you made any hook additions like in the 2. second message of this topic:

 

Share this post


Link to post
Share on other sites

Do you allow me to install the Tracy Debugger Module?

Share this post


Link to post
Share on other sites

yes no problem!

I'm looking for your suggestion about hooks but I didn't find nothing yet

 

Thank you
Andrea

Share this post


Link to post
Share on other sites

I thing it is resolved. Please test.

If it is resolved you may uninstall Tracy debugger.

The reason was;

The "Add Page" under Admin>Pages was unpublished.

 

addpage.jpg

  • Like 1

Share this post


Link to post
Share on other sites
28 minutes ago, huseyin said:

I thing it is resolved. Please test.

If it is resolved you may uninstall Tracy debugger.

The reason was;

The "Add Page" under Admin>Pages was unpublished.

WOW WOW WOW !!!!!!

Thank you very very very much!!!!

Sorry, I don't know why this was unpublished.

I hope that in the future I will be able to reciprocate.

Andrea

Share this post


Link to post
Share on other sites

No problem, your wellcome.

I could learn much from your project.

I have a website where i want to have user registration and let users add their company and products or services related to theese companies.

I have not build a website with api user registration and api user managed content before. So little bit afraid of doing unsecure logic.

Do i need the pro login or is it ok with the regular login module.

What have i to take care especialy for secure user driven site.

The site is www.kentvitrini.com

News, business directory, event calendar. Categorised by cities.

 

 

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Sten
      Sorry I can't find any submit button to save my configuration on a template in the admin interface. The file is fine.
    • By nabo
      Hello
      this is my snippet
      public function init() { if($this->wire('user')->isSuperuser()) { $this->wire()->addHookAfter('ProcessPageEdit::buildFormSettings', $this, 'buildForm'); $this->wire()->addHookBefore('ProcessPageEdit::processInput', $this, 'saveForm'); } } public function buildForm(HookEvent $event) { $p = $event->object->getPage(); $inputfields = $event->return; $fieldset = $this->wire('modules')->get("InputfieldFieldset"); $fieldset->attr('id', 'my_fieldset'); $fieldset->label = __("My Renders"); $fieldset->collapsed = Inputfield::collapsedYes; $field = $this->wire('modules')->get("InputfieldTextarea"); $field->attr('name', 'renders'); $field->attr('value', $p->renders); $field->label = $this->_('Renders'); $fieldset->append($field); $inputfields->append($fieldset); } public function saveForm($event) { $page = $this->pages->get($this->input->post->id); $page->set('renders', $this->input->post->renders); } It builds correctly the inputs, I edit the field renders but when I save the page the value of this inputfield remain blank.
      What's wrong?
    • By carlitoselmago
      I'm building a fieldtype/inputfield to visually select a grid like Bootstrap since it's the first time coding such thing, I'm basing my code in FieldtypeColorPicker since the base structure is the same, a graphical UI helper to finally output a string as value.
      The problem is I try to save the value as something like "1,2,3" referencing the index of each column selected but it gets converted as an int value so "1,2,3" becomes "1" if input random text it gets converted as "0".
      Here is the code:
      https://github.com/carlitoselmago/FieldtypeGridSpace
      Here's an screenshot of how it looks

    • By bramwolf
      Hi Guys,

      I found that my site is producing this notice on the front end, even when $config->debug = false and also when admin is
      not even logged in. How do I keep the site from displaying this message to front end users? The notice is about a few vars
      being tested, which in this case aren't defined, how would I stop that from happing all together when testing vars? if I for instance
      wrap the $discountCode = blabla in a if($order) { ...  } statement than I'm again testing for $order which isn't a object in this case
      which throws another notice..

      This is the notice:


      Here is my current code:
      // PAD DISCOUNT CODE HOOK // First we see if we have active discount code if ($this->session->orderId) { $order = $this->pages->get($this->session->orderId); } if($product->geen_korting == 1) { $nodisc = $product->geen_korting; } else { $nodisc = $product->parent->geen_korting; } $discountCode = $this->sanitizer->selectorValue($order->pad_discount_code); $dc = $this->pages->get("template=paddiscount, title=$discountCode"); if ($dc->id) { if ($nodisc) { $discount = 0; } elseif ($dc->pad_percentage) { $discount = $newprice * ($dc->pad_percentage / 100); } } $event->return = $newprice - $discount;
      Thanks in advance 🙂
    • By shadowkyogre
      [EDIT]: After sitting down and planning out my site according to the ragged hierarchy information, I settled on the following schematics.
      /$world/$template/$content_of_template_type/... for my pretty URLs /roster/$character for my characters a generic Repeater field with depth on most content types for custom positions for child pages to connect to instead of it directly a few Repeater fields on each content that have (PageReference[1], other fields) to establish associations A few FieldsetGroups to help me manage the fields that I needed to copy across a bunch of content types. Kept the original post below for context and tagged the OP for searchability.
      ---
      Hi everyone! I'm working on a personalized worldbuilding wiki to host my art and story stuff.
      Right now my site architecture looks like...
      /$world/cosmology/$cosmology /$world/locations/$location /$world/factions/$faction /$world/history/$history /$world/species/$species /roster/$character So far the layout works, but there's one problem. I need to make sub-sections for an organization. Organizations can appear under cosmology, locations, and factions. Sounds straightforward until... I run into the problem of figuring out how to represent subfactions.
      Key factors in this are...
      Characters should be able to be part of multiple organizations Characters should have an explicit role assigned to their membership. Character pages should be able to query the organization pages to display their ranks across organizations. Editing an organization's hierarchical layout should be visible while editing the root organization page. From what I've read of the ProcessWire documentation, the best use case for each way of representing the organization's subsections are...
      Child Pages:: Works best for menu presentation and dedicated editing. PageTables:: Works if you want control over where to place the PageTable fields, but requires opening a modal for the pages you want to edit. It's also kind of like normal pages. Repeaters:: Works great for inline editing and easy control over hierarchy, but the page urls become obscure. Sections in the body field:: Works for copypasting from my note files. But it doesn't expose relationships for easy querying. It looks like my best case for this is child pages since it allows displaying suborganization in the URL easily. But also I lose out on quickly reordering and editing the child pages. Any advice for people running into similar use cases?
×
×
  • Create New...