Jump to content

adrianmak

Members
  • Posts

    533
  • Joined

  • Last visited

Everything posted by adrianmak

  1. there is a optional image field of a template. If I put this code in a template, for page without uploaded an image , it will throw a php error of "Call to a member function size() on a non-object" $header_image = $page->img->size(800, 250)->url;
  2. I did search. As a reply from Ryan for a post, being said, pw's site builder should think of what the default language it should be. Once content is built, it is not a easy switch to change default language, even though the latest dev still doesn't provide such a functionality. And it required to use a tricky redirect method for switching default language
  3. For most ppl, the default language to be thinking of English, Could I use for non-English, and add English as for additional language ?
  4. Kongondo just pointed out that pw's url is not editable. Isn't the custom menu override url option is just for menu markup prupose, but it's not really override page's url
  5. Thank you for redirect to your post. I have a few questions not quit understood/clear of your custom menu tree implementation. 1. the 'Main Menu' page tree is a separate tree from the site root or still under a child of the site root ? 2. Isn't the 'Main Menu' structures are inputted manually one by one ?
  6. where could I find URL override option in page or page template?
  7. Home +--menu-1 +---menu-1-1 +---menu-1-2 +---menu-1-3 +---menu-1-4 +--menu-2 +---menu-2-1 +---menu-2-2 +---menu-2-3 +--menu-3 +--menu-4 menu-1 and menu-2 which are associated to a page, but without content. It just a sub-menu holder, click menu-1, or menu-2 to expand it's child menu how to make clicking of menu-1 and menu-2 without opening menu- and menu-2 page ?
  8. should I first install the asset before going to install pw's profie ?
  9. Your website template is great for a website start-up. Thanks for sharing
  10. did u use any css framework on this website? or you did it from scratch
  11. I tried testing the wideRenderFile but no success. a template file $temp = wireRenderFile("test", array('content' => $page->body)); echo $temp; test.php <?php $content .= "AAAAAAAAAAAAAA"; There is not outputted content of $temp.
  12. The example code shown in the blog post, $photo = $page->photos->getRandom(); $sidebar = wireRenderFile("inc/fancy_sidebar", array('photo' => $photo)); the wireRenderFile() function will auto append .php file extension to fancy_sidebar ?
  13. I only allow user to create pages up to level 2. User is not allowed to create child pages of level 2 Home +----Level 1 +----Level 2 +----Level 2 +----Level 1 +----Level 2 +----Level 2 +----Level 1 +----Level 2 +----Level 2
  14. How to manage pages at back-end for a single page website ? Isn't a single home template, all pages will display on that template
  15. isn't the website is a single page design ?
  16. Don't limit your thought by the name 'Page'.
  17. From the first link, $db and $database are both existed, which is refer to mysqli and PDO driver resp. Should I specify $this->database in module ?
  18. Isn't the Animate.css will only be activated, until the animated content is in browser viewport ? I tried the animate.css. It won't work as your website. Animation will all activate instead of, scrolling a page to the animated div and then start the animation
  19. the $database is a pw's api variable or php built-in? I could not find in pw api documentation. And can it be used on template and module directly ?
  20. is there any api to create db table? I have a project required user to input raw numeric data which is used for generation of charts. The default pw's pages is not quit an option for user input. I would like to create a module, enable it will create all necessary data tables ? I will build a template for data user input. Is there any db query api for db creation, table query, update, insert, delete operations ?
  21. I'm eager to know how this issue is going on. My next coming project might need secure files download probably. I'm curious, the method provided by Hani, how do ppl upload files (to be secured) to the server ? thru ftp or a template with inputfieldfield ?
  22. I added a new field of an existing template where this template has already hundreds of page had beed created. I put following code on home page temporary. $result = $pages->find("template=mytemplate"); foreach ($result as $p) { $p->new_field = time(); $p->save(); } After refreshing the home page, all pages with this template should be updated. I log-in to backend admin, and found that the field is still empty.
  23. The jquery is great. But I'm wondering for a site with hundreds of product, it may not practical to load all products on a page
×
×
  • Create New...