-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By sambadave
Hi there
Short version of question
Let's say I have a page in the admin that contains a field... Is it possible to output the content from that field on another page in the admin? Almost like a reference.
Longer version of question (with example)
A house builder with multiple (60+) developments. They want to be able to create notices/messages that can be added to one or many developments. Handy for things like regional covid lockdowns or temporary office closures due to bad weather.
My approach for the admin editing options:
Add each message to each development
Pros: You edit the message on the development page in context
Cons: Very time consuming and repetitive if the same message needs to be applied to 60+ developments
Control all the messages from one admin page and say which development each message should be applied to
Pros: Easier to add/remove messages to more than one development at a time. Control all messages from one place.
Cons: Content is not added on development page, which is where typical admin users may expect to find it I went for option 2 due to flexibility, and created a page within the admin for global development notices. This contains a repeater with:
Field for message to display Checkbox list of all developments. The user can select which ones to apply each message to It's working really well but the only thing is that if the user goes to a specific development in the admin, the relevant messages aren't displayed in context (as they aren't edited on that page and instead on the global development notices page)... which may cause confusion when a new staff member / content admin tries to edit the text but there is no field when they go to the development admin page where they expect to see it...
Solution???
I don't require the message(s) to also be editable on the development page, but I wondered if there was a nice way to show it/them somehow. I feel like I am missing something really simple as I'm sure ProcessWire will have a nice way of achieving this, or maybe there are field settings that allow this kind of thing to happen?
Any ideas on approaches or similar experiences would be much appreciated, even if it is just a much simpler example with the content from one field being shown on another admin page to get the ball rolling.
Thanks in advance for any advice :)
-
By VeiJari
Hello forum! I'm trying to learn how to time up my functions by using lazycron but I can't get it fired up.
Here's my code in site/init.php:
function setEventToRepeat(HookEvent $e) { $wire->log->message("kutsutaan cron"); $events = $wire->pages->find('template=tapahtuma'); die(var_dump($events)); $wire->log->message('Kaikki tapahtumat haettu:' .$events); } $wire->addHook('LazyCron::every30Seconds', null, 'setEventToRepeat'); I get nothing in the logs and can't echo or dump anything
Thanks for the help!
-
By ivineets
Hi,
Whenever I try to create a repeater field on my website, I get following error:
General error: 3161 Storage engine MyISAM is disabled (Table creation is disallowed).
If I still continue, it creates the field but doesn't allow storing any kind of data. How do I resolve this? Is there any alternative to repeatable content that I can use?
Thanks for your time.
-
By rolspace.net
Hi Everyone
I have a problem here. I have built a site with Processwire on localhost and then transferred to my customer's server. a) it's a windows server (unfortunately) and b) there is a domain-mapping for this site, the domain points to a folder of another domain. Sorry, I can't explain it any better, I don't really understand the different types of servers (why do they have to be different anyway...).
My problem is, that I see the main website but not the admin page. Do I have to add anything to my .htaccess file?
I also tried to include web.config file. Not .htaccess nor web.config file have an impact when changing its content. I really have no clue what to do!!
Links: mcconnellacademy.ch, mcconnellacademy.ch/admin
Thanks for any pointing in the right direction!
-
By Petra
Hello everyone,
I am a newbie in the world of website editing and I have been given a task to figure out how to redirect a long list of some old client's web pages which give 404 error. We have been able to redirect about two thirds of url's by using php database. Unfortunately the rest does not work, using php, due to containing special characters and the command I have tried to generate for couple of web pages, using the tool https://websiteadvantage.com.au/HtAccess-301-Redirect-Generator#heading-ToolResult is not working using the .htaccess file.
Would anyone be able to help with the following example?
1) https://www.berlitzpraha.cz/en/eshop/individual-language-courses?orderby=product_name
... to be redirected to https://www.berlitzpraha.cz/en/language-courses-berlitz-shop-online/individual-language-courses-3
command generated with the tool (not working):
RewriteEngine On
RewriteCond %{QUERY_STRING} ^orderby=product_name$ [NC]
RewriteRule ^en/eshop/individual-language-courses$ https://www.berlitzpraha.cz/en/language-courses-berlitz-shop-online/individual-language-courses-3? [R=301,NE,NC,L]
2)
http://www.berlitzpraha.cz/cs/skupinove-kurzy-jazyku/hledani/zkouset/function.implode ... to be redirected to https://www.berlitzpraha.cz/cs/skupinove-jazykove-kurzy-pro-firmy/
command generated with the tool (not working):
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.berlitzpraha\.cz$ [NC]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^cs/skupinove-kurzy-jazyku/hledani/zkouset/function\.implode$ https://www.berlitzpraha.cz/cs/skupinove-jazykove-kurzy-pro-firmy/? [R=301,NE,NC,L]
3)
https://www.berlitzpraha.cz/en/language-courses-berlitz-shop-online/virtual-language-courses?orderby=product_sku&showall=1 ... to be redirected to https://www.berlitzpraha.cz/en/virtual-language-courses-shop-online/virtual-language-courses-4
RewriteEngine On
RewriteCond %{QUERY_STRING} ^orderby=product_sku&showall=1$ [NC]
RewriteRule ^en/language-courses-berlitz-shop-online/virtual-language-courses$ https://www.berlitzpraha.cz/en/virtual-language-courses-shop-online/virtual-language-courses-4? [R=301,NE,NC,L]
Thank you very much in advance.
Petra
-