Jump to content

mrs

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by mrs

  1. Hi all, I come back again on the same topic with another problem that I just recovered. If a page's status is "Hidden: Excluded from lists and searches", the url in breadcrumb , sidebar etc. would not automatically attached the /en/ or /hans/ to it. It only shows default link without the "language". I did not test if it works for other status. May I know what should I do to make it work under such situation? Also, it is impossible to "view" the page except in default language when a page is unpublished. Is that intentionally?
  2. I did that. Result is: a) when in Chinese page, LangName:hans b) when in English page, LangName:[empty] Any idea? Thank you Soma for spending the time to find out this tricky problem and solving it for me. I am also appreciate everyone of you for spending time reading and answering to my questions.
  3. Soma, I think I PM you the site so you can take a look at it.
  4. It works partially. Hmm... it works for "de", but does not work for "default". Anyone know why?
  5. May I know how could I apply the "highlight" of the top navigator (class='on' in the code below) for the language selector also? <?php // Create the top navigation list by listing the children of the homepage. // If the section we are in is the current (identified by $page->rootParent) // then note it with <a class='on'> so we can style it differently in our CSS. // In this case we also want the homepage to be part of our top navigation, // so we prepend it to the pages we cycle through: $homepage = $pages->get("/"); $children = $homepage->children; $children->prepend($homepage); foreach($children as $child) { $class = $child === $page->rootParent ? " class='on'" : ''; echo "<li><a$class href='{$child->url}'>{$child->title}</a></li>"; }
  6. Hi everyone, Thank you for your help. I implemented codes provided by Michael at the right place and have it works perfectly. Thank you very much!
  7. Hi epeisa, Exactly I was using the Example 3 to successfully implement the multilingual site. Now what I want, as stated in my first post, is that I need the change of a page from the current language to another language for the same page. If you click the language in that website you would understand what I mean. I do think that I do not need additional module, so I thought Michael's suggestion is a good one. But I just do not know where to apply those code.
  8. Hi Soma, Yes, female. I read that module and it seems complicated to me. I will read again to try to understand it. Thanks.
  9. Hi diogo, I read that module before but I thought the function is changing the URL language from one to another which is what I don't need. Or am I misunderstand about feature of that module?
  10. Hi Michael, Yes, I am using the language gateway as described by you. But where should I put the code in? I mean which file?
  11. Hi all, Referring to this post, website for Setai. At that site, let's say when you viewing the English Contact page, when you click the 中文 (Chinese), the content of the Contact page would change to Chinese immediately, and vice versa. I have multilingual set up on my site and it works properly, but I like this effect instead of giving a EN | ZH link to go back to the homepage each time. Anyone care to help a noob who don't know much about coding?
  12. Wow... That's great! I have been trying to get the simple contact form works in PW. It works but with a bit of problem... With this powerful form builder module I would be able to create forms and collect data easily. Would there be a license for non-profit organisation?
  13. Wow, thank you for the detail explanation. I would go read further to understand the template setting and template file. I need the sidebar, but not for all page, as when you have the children page with navigation menu at the sidebar area, the content of sidebar let's say from the homepage would push further down which looks weird to me.
  14. Hmm... may I know how to mark the topic as solved?
  15. Thank you SiNNut for the pointer. I changed the code so that it will not print sidebar of homepage and everything is well. I thought Setup -> Templates is letting us change the template immediately, but it seems like it is just not showing the fields for inputting content purpose... Probably I get too used to those "widget" style that I think when I get rid of the "sidebar" field for that template, the sidebar would be gone.
  16. Hi all, Installation done and multilingual has been implemented successfully but I faced a problem. I cloned the basic-page, named it basic-page_noside and deleted the "sidebar" at the template setting. I use this new template for the "Docs" page under the Home, and also two child page under "Docs". However, I still can see the sidebar content when I view Docs and the two child pages. I think I miss out something.... and need your help on this. I don't know much about coding etc. but I could follow instruction well.
  17. Thank you! I followed this exactly and I get the multilingual works at the new website. Too happy that I have to share...
×
×
  • Create New...