-
Posts
344 -
Joined
-
Last visited
-
Days Won
1
Everything posted by fbg13
-
API access to another site's object and data?
fbg13 replied to FrancisChung's topic in API & Templates
See here https://processwire.com/blog/posts/multi-instance-pw3/#using-multi-instance-in-pw3- 3 replies
-
- 3
-
- api
- multi site
-
(and 4 more)
Tagged with:
-
All that have a close button. It should behave like the close button.
-
As the title says, make the esc key close the modal.
-
@horst's code worked. Thank you.
-
My code looks like this: //the page $p = new \ProcessWire\Page(); $p->template = 'template'; $p->parent = $site->pages->get('/parent/'); $p->title = 'title'; $p->save(); // the child pages for the pagetable field $d = new \ProcessWire\Page(); $d->template = 'template_pagetable'; $d->parent = $p->id; $d->title = 'title'; $d->save(); $p->save(); I get the page and it's children created, but the pagetable field doesn't have those pages set instead they are displayed as a checkbox list How can I add the child pages to the pageTable field?
-
Why "Add New" Button does not create a new page on the page site?
fbg13 replied to Kai's topic in General Support
It's not there by default because you can have multiple types of pages (different templates), by setting up a parent and child processwire knows what kind of page you want to create. -
Why "Add New" Button does not create a new page on the page site?
fbg13 replied to Kai's topic in General Support
@Kai Go to the template for the page you want to have an add new button/link, on the family tab look for "Show in the add-page shortcut menu?". If not there add a parent and child template and it should appear. -
You could just add your own option in config.php $config->prefix_sitename = 'my site name'; $config->prefix_title_separator = ' - '; And use like this: <title><?php echo $page->title . $config->prefix_title_separator . $config->prefix_sitename ?></title>
-
You can use the page field type to relate pages and use them as taxonomies/terms.
-
What are the benefits of merging the two? What does laravel do that pw can't?
- 11 replies
-
Works on 3.0.28
-
Repeater Fields Ignored on after creating user from API
fbg13 replied to bora's topic in General Support
Check the database for one value that it's not displayed on front end, then save that user and check the value in the db again, see if the value changes in some way. -
Downgrade from 3.x to 2.7 and using CroppableImage
fbg13 replied to Pete Jones's topic in General Support
All you have to do to upgrade/downgrade is replace the index.php and wire folder with the new/old version. https://processwire.com/blog/posts/processwire-3.0-alpha-2-and-2.6.22-rc1/#upgrading-and-downgrading-from-3.x -
Child pages can have multiple parents of the same template, so they are listed there to chose a parent for you're child page. Just my guess. If i click on terms i get on a new page to chose a parent Clicking on a parent skips that page.
-
You can have more add new pages (add new blog entry, add new event, add new gallery etc), so when you click the Add New link it doesn't know what kind of page you want. That's why you get that page so you can chose which one you want. Not sure if having only one should be different.
-
They are automatic. The automatic links have a plus icon while the bookmarks have an arrow icon. Does your blog page have the correct template?
-
Did you check the logs? What do they say?
-
Have you created the Blog page? I had the same happen to me, in my case i didn't have the parent page created. So to add a new blog entry, that is a child of blog, you first need to create its parent page. Go to the pages tree in the admin, hover over home and add a new page (your blog template).
-
Try to look at your log files /var/log on Debian (should be the same for Ubuntu).
-
Why not take the uikit style from the <span> and add it to the <a>? .uk-pagination>.uk-active>a { background: #009dd8; color: #fff; border: 1px solid rgba(0,0,0,.2); border-bottom-color: rgba(0,0,0,.4); background-origin: border-box; background-image: -webkit-linear-gradient(top,#00b4f5,#008dc5); background-image: linear-gradient(to bottom,#00b4f5,#008dc5); text-shadow: 0 -1px 0 rgba(0,0,0,.2); }
- 1 reply
-
- 1
-
As said above you have to change it in one of php's configuration files. ; Maximum allowed size for uploaded files. upload_max_filesize = 40M ; Must be greater than or equal to upload_max_filesize post_max_size = 40M http://php.net/manual/en/ini.core.php#ini.upload-max-filesize http://php.net/manual/en/ini.core.php#ini.post-max-size http://php.net/manual/en/configuration.changes.modes.php
-
Create new page with api from external script PW 3.0.25
fbg13 replied to fbg13's topic in API & Templates
Yes, thank you! -
I'm trying to create a new page through a file outside of the PW system. require('path/to/index.php'); $p = new Page(); $p->template = 'basic-page'; $p->parent = '/about/'; $p->title = 'Title'; $p->save(); Error: Echoing $wire->config->urls->assets works. I'm executing the code from the command line.
-
Thanks @horst that does it.
-
I am uploading images through an api to child pages and when i visit those pages PW creates a variation of the images and thus slowing down the page load 10 to 30 seconds. How to disable default image variation?