Lauren
Members-
Posts
10 -
Joined
-
Last visited
Lauren's Achievements
Jr. Member (3/6)
6
Reputation
-
I'm really glad you mentioned this module because I have a feeling that the client will probably want that feature at some point! However, it's not quite what I'm looking for. What I'm looking for is the ability for a user with view-only permission to view unpublished pages that have already been created. Currently, I'm at the point where unpublished pages do show up in the pages list, which is good. However, no view button is displayed when you click on them, like it does with the other, published pages.
-
Native Way to Adjust Settings for URL/Slug Generation?
Lauren replied to Lauren's topic in General Support
Indeed! Wow, such insightful, helpful answers. Thank you everyone! Adrian, the module you whipped up...so cool and super simple too. Love it. I installed it and tested it out; it's exactly what I was hoping for when I first started thinking about how to accomplish it. I was hoping you could modify the built-in JS behavior like that. Really nifty. Also, really excellent points about the SEO aspect. The main reason behind wanting to remove stop words was more so for the benefits that come along with having shorter URLs. All though, in the StackOverflow question that Pete referenced, I thought the following was a really good point: "Keep them in your URL. Even though Google may ignore them in normal search they do not when someone does an exact match search (i.e. using quotes)." It's so worthwhile posting questions on this forum, because I always walk away with way more knowledge about PW than I expected. Thank you everyone -
Hi there, Is there a native way to adjust how a page's name/url/slug is generated as you type? I'd like it to function similarly to WordPress, which filters out stop words like, "a", "to", "the", etc. If there's not a way to do it natively, would you recommend a module that hooks into the event of when a new page is added? A page's name seems like a pretty vital part of ProcessWire. So, I'm a bit hesitant about messing with it at all! What do the seasoned PW developers out there think? I'm I asking for problems by messing with the page name? Thanks! Lauren
-
This fixed the issue of not seeing the Pages listed and I can also view the Pages as well. However, I still have the issue of not being able to view Unpublished Pages. They show up in the list, crossed out, like usual. But when I click them, no "view" button is displayed. Ah yes. Good question Viewing for unpublished pages on the back-end. Yes, you got it. I tried your suggestion but it didn't make a difference. I do see the unpublished page in the list of pages, but when I click it nothing happens. I would expect a "view" button to appear, like with the other published pages.
-
Oh geez! Sounds like I need to get with the times! ;P The PageTable field type sounds like the way to go. Thank you SO much for being so helpful, not just in answering my question but also helping me navigate my way around the forum! Thank you
-
Sorry all! I assumed I'd automatically get a notification when there was a reply! Now, I see that I needed to "Follow the topic" Okay. So, here's what I'm looking to accomplish: Essentially, what I'd like is a "reviewer" Role that I can give to users which allows them to log into the admin, see the Pages list and view any Page, both published and unpublished. Here's what I've done: Added a new Role called "reviewer" with page-view permission Under the Access tab, on one of the templates, selected "Yes" to "...manage view and edit access..." and checked the View Pages permission Created a new user with the "reviewer" role When I log in, I don't see any Pages listed: Is there a setting or something I'm missing? I'm wondering if I just haven't fully grasped how the permissions and roles work---I have a sneaking suspicion that's the issue
-
Oh, thank you! I didn't know there was a reply. What you're suggesting doesn't quite work because the field to select the Page is contained within a Repeater. So, here's my setup: I have a collection of Technical Specs (Pages). Those Technical Specs are added to Products by way of a Repeater field type containing two fields: a Page select list of the Technical Specs (tech_spec) and a text field for the value (spec_value). So, for example, Product A has a Cure Time (tech_spec) of 1 hour (spec_value). I'm not sure how to do the inline image popup like you did, so I attached some screen shots. Maybe instead of the Repeater there's another field I should be using to accomplish this? Thanks for any insight you can provide. I'm fine with going the custom module route, but I always like to know if there's a native way to do it! The less code to maintain, the better!
-
Hi there, Is there is a built-in way to prevent duplicates when it comes to the Repeater field type? The Repeater I have setup contains two fields: one is a select list of other Pages and the second is just a text field. Ideally, I'd love the select list of Pages to work similarly to how the Fields list in Admin works. As you're adding Fields to a Template, the ones you've already added become disabled in the list so they cannot be added again. If that's not possible, then would something like the following be the next best solution as a module? public function init() { $this->addHookAfter("InputfieldRepeater::processInput", $this, "validateNoDups"); } public function validateNoDups($event){ $field = $event->object; if($field->name == "technical_specs"){ $page = $this->modules->ProcessPageEdit->getPage(); $specs = $page->get("$field->name"); $s = array(); foreach($specs as $spec) { if ($spec->technical_spec) { $s[] = $spec->technical_spec->title; } } $dups = $this->get_duplicates($s); if ($dups) { $field->error("You have duplicate technical specs: " . implode(', ', $dups)); } } } Thanks! Lauren
-
This is exactly what I was looking for! Thank you I'm using it to create a custom "Label Field". However, it shows the ID, versus the title. Is there something I need to do to get it working when concatenating fields of the Page fieldtype? Or does it only support certain fieldtypes, like Text?
-
Hi there, I'm new to PW and loving it so far! I'd just like to know... is it possible to have view-only access for unpublished pages? I can't seem to get that level of permission working without also having to grant EDIT access, which I don't want to do. Thanks! Lauren