-
Posts
6,808 -
Joined
-
Last visited
-
Days Won
159
Everything posted by Soma
-
I'm not sure I understand and I don't know Foundation dropdown and its required markup and what makes a item clickable or not. MarkupSimpleNavigation doesn't have to do something with whether a item is clickable or not. Can't you just add some jquery to prevent that?
-
Access right is used for restricting pages for logged in users etc. I would avoid that solution in this case.
-
You don't need to remove view access at all. Just don't create a php file for the subpage template so it will not be directly viewable. So you dont need to turn access control off and can also search without adding that etc.
-
-
-
The simplicity and scalability of PW for front end dev?
Soma replied to kathep's topic in General Support
Alwaystrynewthingsandgetbetteroralwayadothesameandstaygood.- 41 replies
-
- 13
-
-
Oliver it's in core since 2.4 I think, you can define a icon per template. Now in latest there's even a new fieldtype for selecting font-awesome icons, instead of manually entering name.
-
This will also be always true: if(wire('page')->template = 'blog-post') {
-
Strange code you have here, not really getting what you doing there manually creating img path etc. But this condition will always be true. if($on='Y') {
-
Ah then it's neither about renaming wire nor about multisite. I am lost here.
-
But you know you don't need to do this symlinking? You can just put the wire folder in the root where site folders are?
-
How could I assign specific admin page for user role?
Soma replied to adrianmak's topic in General Support
It's not about winning here Congrats Adrian anyway. -
It's also easy to create a hook that creates folder automaticLy and put post there or move it if date changes.
-
It should work fine in 2.5. Just haven't come to test So haven't marked as 2.5 in directory. If you try and it works let me know. I think some update for various admin pages shortcuts needs to get revised but other than that it should be fine.
-
RT @processwire: New blog post: ProcessWire 2.5.16– Blank versus zero, Configurable URL segments in template settings and more… https://t.c…
-
Just wondering what's the use case here? Don't you have a form? Or you can validate while setting the values anyway.
-
Just remove it. (the save())
-
You're right that it requires a form to run processInput(), creating and saving a page via API doesn't validate anything Like this, but won't work with file fields. $p = new Page(); $p->template = "basic-page"; $p->parent = 1; // $p->save(); $in = new WireInputData(); $in->setArray(array("title" => "")); $form = $modules->InputfieldForm; foreach($p->fields as $field){ $inputfield = $field->getInputfield($p); $form->add($inputfield); } $form->protectCSRF = false; $form->processInput($in); foreach( $form->getErrors() as $err ) { $content .= $err; }
-
How to add scripts & styles to module-generated admin page?
Soma replied to hellomoto's topic in API & Templates
Just name the script and style sheet same as your module then add init () with a parent::init(); and they get loaded. -
Turning forty this year I right now enjoy a twenty year old red wine from toscana. What a experience really ä.
-
Games play a bigger role in our lives than most think. They let us escape from reality much like films do too but are interactive in a broader sense. Gadgets like glass or this holo go in the same direction but are far more driven by making money and trying to get something out we actually don't need. Kapitalismus if you wish. Wow effect. Look at what we can do!.. Exploring and getting new territory in our daily live that's yet free from ads and stuff like that. Perfectly trying to create new opportunities to blend in some thing and manipulate us. Google car is also a wonderful example. Driving a car doesn't let you use a phone or Google. Imagine wearing glasses that can be controlled by third parties track you and your behavior even more. I'm not sure we let this happen as easily as hey think. Joss says it well. We want to make our own experience with real object humans and nature. At some point breaking out of this will become a deep necessity.
-
I have glasses (real) and hate to wear them.. so there comes some random company telling me I need to wear glasses? All this bs will never work and get accepted unless it's directly in our eye or brain. So wait another 100 years I guess. While this is nothing new they marmarmad it differently as 'Hologram' that really isn't. Maybe there uses in sience or games but doubt it. Not ready for a long time.
-
-
I also have a version of this, just saying
-
New to Hooks, trying to wrap my head around the syntax
Soma replied to creativejay's topic in Getting Started
No need for the event->return = $p or anything like that, Adrian