-
Posts
74 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Fokke
-
Active Navigation CSS Not Working with Multiple Menu Locations
Fokke replied to bck2sqr1's topic in General Support
That's because $page object is not in scope when used in function. Try changing the line: $classy = $child === $page ? " class='current'" : ''; to: $classy = $child === wire('page') ? " class='current'" : ''; There's also a versatile MarkupSimpleNavigation module for outputting navigations. -
Are you sure you're managing permissions in this template? Sounds like those pages are inheriting permissions from the templates of parent pages.
-
Hi Spica! Create a new permission called "page-edit-show-settings-tab" and adjust the roles to fit your needs. In /site/templates/admin.php add the following before the line: require($config->paths->adminTemplates . 'controller.php'); function hideSettingsTab(HookEvent $event) { // Get the page being edited $page = $event->object->getPage(); if (!wire('user')->hasPermission('page-edit-show-settings-tab', $page)) { $page->template->set('noSettings', 1); } } $wire->addHookBefore('ProcessPageEdit::buildForm', null, 'hideSettingsTab'); After a quick test, this seems to work fine on my setup.
- 2 replies
-
- 12
-
I have the same problem. $page->imageCrop->getCrop('test')->url The thumbnail will be regenerated every time the page is reloaded. This will happen in both frontend and backend. Using 2.5.19 dev
-
Glad you like it! This "family" was one of the hardest terms, and "perhe" sounds awful This will be changed immediately when we find a better translation.
-
Hi! Look for Custom Editor JS Styles Set in the field configuration and enter a path for .js file. In this file you can define your custom styles like this: CKEDITOR.stylesSet.add('mystyles', [ // Block-level styles { name: 'Heading 1', element: 'h1'}, { name: 'Heading 2', element: 'h2'}, { name: 'Heading 3', element: 'h3'}, { name: 'Introduction', element: 'p', attributes: { 'class': 'introduction'} }, // Inline styles { name: 'Link button', element: 'a', attributes: { 'class': 'button' } }, { name: 'Highlight', element: 'span', attributes: { 'class': 'highlight' } }, // Object styles { name: 'Stretch', element: 'img', attributes: { 'class': 'stretch' } }, ]); Also make sure you have Styles toolbar item enabled.
- 35 replies
-
- 14
-
All translations for 3rd party modules are deleted from the repository. Hopefully we'll find a place for these poor JSON files too
-
@Teppo: Yes this was intended. The original language pack contained translations for Form Builder, so I added translations for a couple of other modules too. Should we store these module translations elsewhere?
-
https://github.com/apeisa/Finnish-ProcessWire I pushed a big update to the GitHub. Some parts are still missing, and there are certainly a lot errors to be corrected. Additional pull requests are welcome EDIT: I used PW 2.5.8 dev when creating this language pack. More coming soon! You can find the old translations for 2.4 here: https://github.com/apeisa/Finnish-ProcessWire/releases
-
A big PR is coming soon
-
And don't forget to put debug mode on
-
Pro Cache Thumbnails Admin Hot Keys Markup Simple Navigation E-mail Obfuscation
-
Hi! Try using $page->template->name instead.
-
Hi! Those prefixes are being used only in pagination, as the title says Edit your home page, open Settings tab and change page names there.
-
Are you trying to add the same field multiple times? If you need multiple image fields in the same template, you need to create more fields.
-
Problem with Path in @font-face src: url(...)
Fokke replied to bytesource's topic in General Support
font-family: 'Open Sans', sans-serif; Remove "sans-serif" part. Font substitutions do not belong to the @font-face declarations. -
Problem with Path in @font-face src: url(...)
Fokke replied to bytesource's topic in General Support
Have you tried to declare @font-face rules before any other css rules? -
You can easily create cross-references to other pages using Page field. It's a very versatile solution to any task like this. Old but still relevant demo: https://processwire.com/videos/page-fieldtype/
-
"check For New Modules" Causes Internal Server Error
Fokke replied to Fokke's topic in General Support
Unfortunately I'm on shared hosting, and I have been asking and waiting for PHP and MySQL upgrade for too long... If it's not coming soon, I think it's time to switch to another hosting company. -
"check For New Modules" Causes Internal Server Error
Fokke replied to Fokke's topic in General Support
Hi Ryan! After a long waiting, here's the error log: [Fri Aug 01 11:34:10 2014] [warn] [client 109.204.148.78] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://www.nokikana.fi/test/processwire/module/ [Fri Aug 01 11:34:10 2014] [error] [client 109.204.148.78] Premature end of script headers: index.php, referer: http://www.nokikana.fi/test/processwire/module/ Does this help with recognizing the problem? I have no clue what these errors mean : ) -
"check For New Modules" Causes Internal Server Error
Fokke replied to Fokke's topic in General Support
Hi arjen! The errors.txt file is empty. When the error occurs, I tried to remove all rows from caches table, and then reload the page. Only Modules.wire/modules/ row will be added, with correct data though. Is there something broken with reading these caches? -
Hi! Ok, this is weird one. My site is running the dev version 2.4.8 on MAMP environment with PHP version 5.5.10 and MySQL version 5.5.34. Everything is running fine. However, when running the same site on my remote host, clicking "Check for new modules" button in Modules page causes Internal server error, which never goes away, until I delete rows "Modules.site/modules/" and "Modules.wire/modules/" from "caches" table and manually copy them back from the local database. The rows with the names Modules.info and ModulesVerbose.info are exactly the same between the local and remote databases. The rows with the names Modules.site/modules/ and Modules.wire/modules/ have the same data, but on local database they are sorted alphabetically, on the remote database they are not. The remote server is running PHP 5.3.27-1~dotdeb.0, MySQL 5.0.8-dev. Unfortunately I have no access to the server logs. I have asked for the logs, but sounds like they are not willing to give me them. Got to put some more pressure on them Any thoughts?
-
Hi! As apeisa mentioned, this is very simple to build. Unless you need preloading, transitions etc, something like this should cover your needs. <img id="big" src="image1.jpg"> <div id="thumbnails"> <a href="image1.jpg"><img src="image1_thumb.jpg"></a> <a href="image2.jpg"><img src="image2_thumb.jpg"></a> <a href="image3.jpg"><img src="image3_thumb.jpg"></a> </div> And jQuery... $("#thumbnails a").on('click', function(e) { e.preventDefault(); $('#big').attr('src', $(this).attr('href')); });
-
Empty field in one language displays default language
Fokke replied to joe_ma's topic in Multi-Language Support
Hi! In field settings there's a setting called "Language support / Blank behavior". Set it to "Remain blank".