-
Posts
542 -
Joined
-
Last visited
-
Days Won
1
Everything posted by ceberlin
-
Is there an easier way to make this language aware than putting tons of fields in an individual add-on module? With all the new toys from the PW dev version? What, if an additional language comes? I am not sure editors want to edit modules code for that extra content fields?
-
WISHLIST: Forgot to mention that it would be great if those fields were language aware. Are they? SEO: Well its a bit off topic but interesting enough: I was mentioning the technical CMS need for an alt text. I was not talking about content in there. When talking about "the SEO guys", I do not mean manipulations, keyword stuffing and other eval things. They sometimes like to but things slightly differently in there than in the caption texts. And I want to make that possible, technically. - Client is king You could use that data also to output a "title" attribute - for a basic mouseover help text, and so on...
-
Now that tags are possible for images I wonder whether this could be stored with images also: - ALT - COPYRIGHT Why? I have the description field which I use as caption and as "alt" attribute at the moment. But my editors have problems with that and fill up the description with to much information. I would like to store some information separately: 1. description would be output as caption. 2. the alt attribute would be open for manipulations to the SEO guys - without them ruining the caption. If no alt attribute is set, I would output the the description and if there is no description either, a ".". So we are always validating with out the need to code this manually for every single image used. 3. The copyright: This could be placed where we like it, maybe at the bottom of the page. This is very important to make the usage of many stock images legal. And we do not need to misuse the description for that any more.
-
HI Pete, now I am using the DEV version. There is something funny: I set the module to redirect to the login page (default behavior). The "is in maintenance" info appears twice at the login screen. Maybe one time with the redirect and one time calculated new. Because it is only one time after I refresh the login page. Another idea: It would be great if the switch to put the maintenance mode on and off would be more accessible as a separate admin "setup" page and available to certain user roles - and not buried in the module's settings.
-
I see... I need to calculate the loop earlier (in the head already) and then have the info I need ... Here is my code in case s.o. wants to play with it further: I am trying this now within the page's head: $limit = 12; // the "limit"-setting used on this page $children = $page->children("limit=" . $limit); $totalpages = ceil($children->getTotal() / $limit); // PAGINATOR: set SEO tags for Google if ($input->pageNum) { if ($input->pageNum < $totalpages) { echo "<link rel='next' href='" . $page->url . $config->pageNumUrlPrefix . ($input->pageNum + 1) . "' />"; } if ($input->pageNum > 1) { echo "<link rel='prev' href='" . $page->url . $config->pageNumUrlPrefix . ($input->pageNum - 1) . "' />"; } } Within the body comes the loop and the paginator: <?php foreach($children as $child): ?> ... <?php endforeach; ?> <?=$children->renderPager(); ?>
-
Google wants special code in the header to identify pages with a paginator correctly: <link rel="prev" href="http://www.example.com/article?page=1" /> <link rel="next" href="http://www.example.com/article?page=3" /> Is there a way to do that with the paginator module already - or with some small tweaks? All the needed information should be there already (like "is there a next/prev page" and "what are the links") and there might be just some additional rendering for the header part of the webpage necessary. Source/read more: http://googlewebmastercentral.blogspot.de/2011/09/pagination-with-relnext-and-relprev.html
-
Hi, I had the logging ON (debugging mode ON) and the actual actions OFF (commented those lines out) so I could monitor for 2 months how the module behaves. I checked the log in messages.txt on both the staging and the live server and found no mass-unpublishing any more. Looks like the issue I had was solved indeed (I am using the dev version of PW, and PHP 5.3).
-
The blog profile has cool features built in, but is not exactly easy to understand for PW newbies as it shows a rather advanced way of using templates. PW is much less complicated to set up than demonstrated there.
-
upscaling=>false not working when one dimension set to 0
ceberlin replied to adrian's topic in API & Templates
Note: small typo in the post above: if($page->image->width() < 500) {...} should be: if($page->image->width < 500) {...} right? -
I have a problem with the that page field, when allowing new entries: I set a php custom search and a template and would expect that this is all I need to have a "Allow new pages to be created from field?" being set. I need this for tags, but I have language trees like this: /en/tags /de/tags /es/tags and I cannot set a fixed parent because of that, because the rootParent is not the same. My individual selector code: return $page->rootParent->find("template=tag, sort=title, include=hidden"); But unfortunately adding a new tag works only when setting a fixed parent page with the parent-selector. Is there a way around?
-
I had also this problem once, when I inadvertently had a unicode (UTF-8) formatted html document with BOM activated running. This would be another possibility to watch out for.
-
Thank you Soma, I will open an issue to ask to have that added officially. (I don't like modifing anything within wire myself). Thank you DaveP for the workaround.
-
I really would love to have this useful feature back. I was about to changing a template for specific needs, then I realized I used it somewhere already where the new changes created a mess.
-
I am sure I saw this working - now I am searching for it like crazy: I need to know what pages use a certain template (like I can see what templates use a field). I just can't remember where that was. I would expect to see it in the templates list, clicking on the "number of pages using the template" in the template's row UPDATE: in P.W. 2.3 I see this information on the template page of the skyscraper demo, like so "This template is used by 210 pages" I can*t see this info in the dev version. Or does it need a certain module?
-
Hi the 103 version has a glitch with the version code? I use ModuleManager to update it from 102 but the update alert never goes away.
-
The module does not work on my installation (with the latest PW dev installed): I receive a 404 error ........ /wire/modules/Inputfield/InputfieldTinyMCE/tinymce-3.5.8/plugins/charcount_maxlength/editor_plugin.js And indeed there is not such a folder charcount_maxlength within that wire directory. EDIT: Maybe a false alarm. The offending plugin call charcount_maxlength was not anywhere in your code, but buried in our field's settings for TinyMCE. I will check now how that entry came in there.
- 67 replies
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
Hi, I am looking for a field type that works exactly like the link selector in TinyEdit where I can select either a local page (that is updates if the target page moves in case that follow module is installed) - or where I can select an external URL instead. I tried the "Link"- and the "pages"-field types but they both seem to be not what I am looking for, Is there something I overlooked? Thanks already
- 1 reply
-
- field selector
- url
-
(and 2 more)
Tagged with:
-
Hi JoZ3, this question regarding ZIP might have been addressed already earlier in this thread. See entry #42 http://processwire.com/talk/topic/1550-modules-manager/?p=14613 There could be a problem with your PHP installation. just a guess...
-
Hi, this looks like a clever idea. It's pretty enough ;-) I put this online and continue with loggings.
-
Just a quick note: I still believe that the offending part that causes all this might be the usage of date_default_timezone_set in PHP at another script somewhere else which seems to have unintended side effects on the module's script. That would explain why the script is only hurting me and almost no one else. (I de-activated that other script and will do some more logging now.)
-
Hi Fokke, could this be related to this thread? http://processwire.com/talk/topic/3089-moving-pages-hanging/
-
Hi,I would recomment updating minify a.s.ap. in your module, see this thread: http://processwire.com/talk/topic/1537-minify/page-2
-
Languages and countries (as dialects)
ceberlin replied to ceberlin's topic in Multi-Language Support
Hi Soma, thanks for your ideas. Yeah, really tricky. Right now I am trying to avoid this by using cookies and sessions to remember the country settings and let PW only handle the basic languages, as before. Maybe I have a use for segments on single pages that need to do special things , like the contact pages. I am curious how far I come with that. -
I have a very tricky problem.... My languages appear into separate trees and not in languagesfields within a page. Now: /en/page1 /en/page2 ... /es/page1 /es/page2 Now I need to separate languages in dialects as a tool to be able to address local content for countries on certain pages. Solution 1? /en-UK/page1 /en-UK/page1 /en-US/page1 /en-US/page1 ... /es/page1 /es/page2 This would be a technical clean solution - but editors would need to duplicate every change that is common for a language to all dialects pages. So this does not work. (All content is the same appart from a few exceptions) Solution 2? /en/UK/page1 /en/UK/page1 /en/US/page1 /en/US/page1 ... /es/page1 /es/page2 We thought of making /US/ and /UK/ are segments from the page /en/. A segment would make it possible to bookmark the dialect setting. There would be only a language tree /en/ and the dialect /UK/ would change the content slightly by the API, like returning a different support phone number. Is it possible to have a segment element in the middle of a path? Looks like it's not... Or is there a different way to archive this?
-
Bug: moving pages with children will make them not findable
ceberlin replied to Soma's topic in General Support
Whow, that could really explain nearly all the trouble I had with find() in the past (where the source tree worked with find and the cloned trees worked not).