-
Posts
357 -
Joined
-
Last visited
Everything posted by Tyssen
-
I've recently had a problem crop up with pages using a certain template that was working fine before. When I go to edit certain pages, I get returned to the same page I'm on, i.e. /processwire/page/edit/?id=XXXX but instead it displays the 404 template. And the data I'm entering or updating doesn't get saved. The template only has title, multiplier, table and file fields attached to it. And the table field is also modified by the TableCSVImportExport module. And it only seems to be happening to certain pages with this template, not all of them. :?
-
Fieldtype for selecting images from another field on same page
Tyssen replied to Tyssen's topic in General Support
It does seem like what I'm looking for but I can't get it to work either. I've already got ImagesManager installed and set up and have added a field to my page but all it seems to do is enable you to search for images but doesn't actually save any information about the image once you've found it. The only fields in the fieldtype are for filtering, nothing for saving data. Actually, on closer inspection I can see the field for saving the data is set to display:none and so is the container for what looks like is supposed to appear after you've selected an image. But I don't see any way of actually selecting the image from within the ImagesManager or the search that then inserts it into the field. -
$pages->find("template=xxxx") not working for certain template
Tyssen replied to Tyssen's topic in General Support
That's what it was, all the pages are hidden. All good now, thanks. -
I'm trying to fetch an array of pages that use a certain template with: $my_array = $pages->find("template=xxxx"); But for some reason, it won't return anything for the template that I'm targeting. If I change the template name to my basic page or news templates, for example, I get a list of pages output, but not for the template I want. Is there some setting I've inadvertently set that would cause the template's pages to not display? The template is being used for pages on the site and they display OK as single entry pages. Or could it be related to an issue I had with the same template yesterday where I was adding a new field to the page, and then when I went to edit the page with content in the new field, I'd get returned to the same page I was on, i.e. /processwire/page/edit/?id=XXXX but it would display the 404 template instead? And the data I'd tried to enter wouldn't be saved. The template only has title, multiplier, table and file fields attached to it. And the table field is also modified by the TableCSVImportExport module.
-
Fieldtype for selecting images from another field on same page
Tyssen replied to Tyssen's topic in General Support
Yeah, not very user-friendly. The site editors would have to add images to a separate entry whereas they already currently add images to the rows in the entry that controls the page. Feels like that would be a step backward usability-wise. -
Is there a way to select an image from another image field on the page, much the same way as CKEditor fields can when embedding images? Why not just use an ordinary image field? Because in my case, I have a repeater for creating a home page carousel for featured news items. Each row in the repeater has an image field. Sometimes you want to be able to use the same image for more than one slide. Currently you have to upload the same image to each row. And if you need to replace an image but know you'll need to use it again at a future date, you have to leave it attached to the image field but move it away from the first position so any new images can be first instead. So each row ends up with 5-6 different images that are used frequently for different types of topics, which is a) a bit untidy, and b) means you have to repeatedly upload common images, i.e. duplication of effort. It would be better if I could have a global images field for the page, and then in each repeating row, a fieldtype that can choose an existing image from that field. I thought about using a CKEditor fieldtype, but that generates all the markup too, and I don't want to do that as the markup will be generated with dynamic image sizes in the template. I also know of the image manager module that Soma made but that's not really what I'm after either. Is there any way to accomplish this?
-
MarkupSEO - The all-in-one SEO solution for ProcessWire.
Tyssen replied to Nico Knoll's topic in Modules/Plugins
All good now, thanks. And very nice module, previewing feature especially. Just one small request: it would be useful to have a way to override the Title Format on certain pages, e.g. the home page. For most pages I'll want to have Page Name – Site Name, but on the home page I'll want to have Site Name – Site Description, but with title format enabled I get Site Name – Site Description – Site Name. -
MarkupSEO - The all-in-one SEO solution for ProcessWire.
Tyssen replied to Nico Knoll's topic in Modules/Plugins
I've posted here and created an issue on Github but not received a reply to either. If my question is lacking some information, please let me know. -
Thanks Horst, there's some useful options there. I have actually downloaded PIA, but haven't gotten around to using it yet.
-
Actually, it looks like it might be a cacheing issue as tried it on a new page and it's working OK. :?
-
Why is upscaling false being ignored with the following template? foreach($page->images as $image) : $options = array( 'quality' => 85, 'upscaling' => false ); $large_img = $image->width(800,$options); $thumb_img = $image->size(100,100,$options); $img .= '<a href="'.$large_img->url.'"><img src="' . $thumb_img->url .'"></a>'; endforeach; The page I'm testing has images that are smaller than 800 but the linked versions are all 800px wide (and pixellated because they've been stretched).
-
MarkupSEO - The all-in-one SEO solution for ProcessWire.
Tyssen replied to Nico Knoll's topic in Modules/Plugins
I'm not getting an SEO tab appear on my publish/edit pages. I'm also not seeing any seo_xxxx fields in my fields list. So I thought I should maybe uninstall and reinstall, but when I try to uninstall I get: And yes, I have specified templates to get the tab in the module's settings. -
I gather there's quite a few ex-ModX users on this forum and was wondering if someone might be able to help me out with something which should be simple but is defeating me at the moment: uploading a PDF. I've created a template variable and added it to a template, have checked all my file manager config settings several times and permissions on the server, but keep getting 'disallowed file type' errors. :/
-
Is there a way to add links to a Lister page to the main menu? Or have the normal tree menu replaced by a Lister page?
-
Including a page in another page in a Multisite setup
Tyssen replied to Tyssen's topic in General Support
For certain sections, yes, I need to copy the whole sub tree. -
Including a page in another page in a Multisite setup
Tyssen replied to Tyssen's topic in General Support
What you're saying seems to conflict with what MadeMyDay is saying in the other thread. FWIW if(count($page->includePage)>0) $page = $page->includePage; works for npl.dev-server.dnsalias.com/about/ but not npl.dev-server.dnsalias.com/about/club-history/ etc. -
Done: https://processwire.com/talk/topic/7429-including-a-page-in-another-page-in-a-multisite-setup/
-
This question follows on from the discussion that starts here. A screenshot of the page tree is attached. On the subsite, the content of About displays OK, but all the subpages of About only display the page title. Template code is: <?php /** * NPL Page template * */ if(count($page->includePage)>0) $page = $page->includePage; $outMain = '<h1>'.$page->title.'</h1>'; $outMain .= $page->body; include("./npl-main.inc.php");