Jump to content

rick

Members
  • Posts

    635
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by rick

  1. rick

    CDS Service

    The site looks good. I only see a few issues with the English version. Partner section on front page is not translated. Under Software>Control, Utliising is misspelled. Weblounge page is not translated. Images under Solutions initially take a long time to load. I like what you did with the site. It is clean and easy to follow. Nice work!
  2. Hi @Publisher-in-Chief, Once you have Tracy installed, it will display a toolbar at the bottom-right of your screen. Click the Console ">_" icon, and paste Example 1 in the window. Click Run to execute the code. No worries. Every one of us are newbies at something. Feel free to ask any question. There are many good people here that will be glad to help. Nice site too.
  3. I can't speak 'officially' toward ProcessWire rules regarding promoting personal sites. However, I do think that your ideas, examples, prototypes if you will, are very welcome by me and other newbies. I found your ajax order tutorial very beneficial and I would welcome many others you may offer. I even have a few suggestions for topics if you are interested. I don't see anything wrong with putting a brief description (or outline) of each of your articles in the tutorial forum and include a link to the full article on your site. On a side note, having cross referenced links is good seo for you and ProcessWire both.
  4. @abdus, Very nicely done! Thanks for your procrastination.
  5. @adrian, It's not a problem, just an idiosyncrasy. lol This is a great module and I just wanted to post an FYI. PS. Enjoy your 'time off'! Post pics of the native women from the island when you get a chance!
  6. Hi @adrian, welcome back. The first image shows the initial console window size and position with a code sample (not yet executed). This image shows the window size has automatically expanded vertically (after executing code) where the 'title bar' is now off screen. I am using chrome (maximized window). This doesn't prevent me from clicking the console icon (TD's toolbar) to close the window, then click it again to re-open it to display the console within the window boundaries. I can also toggle the browser window size to reset the console display size. I'm not reporting this as a bug because it doesn't prevent me from continuing, nor does it generate incorrect results. It is just something that I noticed.
  7. Hi Jim, In my case I'm glad php is a palindrome. Ha! I modified the rendernavtree function for my needs (shown below, using bootstrap) which produces the menu shown in the image I posted earlier. I've gone through and added comments that may help. <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span> </button> <a class="navbar-brand" href="<?php echo $pages->get('/')->url ?>"><img src="<?php echo $config->urls->templates ?>images/processwire.svg" alt="" /></a> </div> <div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <?php // Get the top-level page $menuitems = $pages->get('/'); // iterate through our top-level page and it's children foreach( $menuitems->and( $menuitems->children ) AS $item ) { if ( $user->isLoggedin() && strtolower($item->name) == "login" ) { echo '<li><a href="'.$pages->get('/logout/')->url.'">Logout</a></li>'; } else { if( $item->id == $page->id ) { // Is item our current page? echo "<li class='active'>"; } else { echo "<li>"; } echo "<a href='$item->url'>".ucfirst($item->name)."</a></li>"; } } echo "</ul>"; if ( $user->isLoggedin() ) { // display logged in user echo '<p class="navbar-text navbar-right">Logged in as <a href="#" title="Profile">'.$user->name.'</a></p>'; } ?> </ul> </div> </div> </nav> When you create your pages, you can set one or more to be hidden, which won't show up in this menu list. To get this (your) menu to display on every page, is as easy as including it in your php files. For example: <div class="container"> <?php include "./_navbar.php"; Is a segment of code that I use to include the menu on every page. This segment is placed in my _head.php file which is auto prepended to every page. See this topic for more information. The following article has more general information... site profile tutorial There are also many great tutorials in the tutorial section written by the experienced ProcessWire members here. They are all worth a read. Also, check out the blog articles. I've found quite a few gems there. Hope this helps.
  8. rick

    URLs

    @szabesz Nicely done.
  9. Hi @JimSee, Welcome to the forums! When you say that you are brand new, are you referring to ProcessWire, or to coding, or all of the above? To answer your question depends upon which css you want to use, as there are many to choose from. Google 'mobile first css grid' to get a selection (assuming you want your site viewable on different devices). Whichever one you select will have examples of how to accomplish your desired menu. For example, here is a screenshot using bootstrap. (I'm not endorsing it, just using it as an example.) Post back here if you have questions and someone will jump in and help with the coding.
  10. rick

    URLs

    Hi @ktagel, Welcome to the forums! That information, I believe, is described here. Have a look around at the other articles too, as they are indispensable. Feel free to post any questions you may have and someone will be along shortly to help.
  11. There are a number of modules available here that may suit your needs.
  12. Hi timothy, Since you are only using a blog, you can set the 'Home' Page Title to be whatever you want (eg, Blog), and create your blog posts beneath. So whatever template you currently have defined for your current blog page would be the one to set for the new 'Home' (Blog) Page. You can then promote your blog posts up a level where they reside beneath Blog. Another option might be url segments.
  13. I could be wrong, but I think Home is the parent of all pages. You can't have another page at that level. What is it you want to accomplish? Maybe there is a means to do so with your current structure. And welcome to the forum!
  14. @adrian, I have a suggestion. Is there any way to make the results pane of the console scrollable? When code executed in the console produces a long output, the results pane expands vertically and the top (Close) heading is forced above the browser window. There is no way to move the window back down other than clearing the results which shrinks the window back to original size.
  15. Do you have Tracy Debugger installed? I believe you can test the rss feed in the console. You would use the Example 1 code from Ryan's post, minus the php tag, like so: $rss = $modules->get("MarkupLoadRSS"); $rss->load("http://www.di.net/articles/rss/"); foreach($rss as $item) { echo "<p>"; echo "<a href='{$item->url}'>{$item->title}</a> "; echo $item->date . "<br /> "; echo $item->description; echo "</p>"; } This example works on my 3.0.61 install, so it should work for you as well. What do you mean you purchased a template with all files (What files?) and the pages (What pages?) were already created? Did you purchase a site profile?
  16. @Pino I am not sure about adding this through $languages or the translation files as I am not using multi languages. I had this error initially upon upgrading and the problem went away after I added the locale setting to the config file. Does you server fall within the PHP notice? I don't know if this has anything to do with it though.
  17. Placing setlocale(LC_ALL, "en_US.UTF-8") in /site/config.php solved the issue for me, but I am not using the multi language capability. setlocale
  18. I like the idea of a periodic sale of various products. Also, Have a quarterly or semi-annual contest open to all community non-staff members to develop the best ProcessWire widget. The winner gets the designated product license, second place gets the "All I Got Was This ProcessWire T-shirt". Seriously. Having the ProcessWire logo on items would be great. I'd buy the coffee mug now.
  19. Hi @Publisher-in-Chief, Welcome to the forums! The link @abdus posted contains an example usage which displays the contents of an rss feed. Copy that example into your template file. Replace the example URL with the one you want to use. View the page. Additional information on usage can be found under the More Details section of that post. Let us know if you need help with what you want to accomplish.
  20. You are correct that process modules should be restricted to back-end use. It was my mistake for using that example and applying it to front-end use. I am not writing any process modules, though. I believe I have enough to continue converting my olden-days code to use in ProcessWire. I understand your URL segment example, too. I'm sure I will make use of it soon. Thank you for your help.
  21. Hi @abdus, @horst Thanks for your replies. abdus, If I understand you correctly, ProcessWire has it's own set of "magic functions" relating to module classes similar to how it automatically handles template files, such as <code>init.php</code> and <code>ready.php</code>, where init() and ready() are automatically executed within a module if present. In Ryan's module, ImportPagesCSV, it appears that module functions are automatically executed based on URL segments (which are not defined in a template): Maybe I am making things far more complicated than they really are, which is highly likely, but this is the basis of my confusion. Information like what you both have posted needs to be documented somewhere so it's easy to find. Thank you both for your replies.
  22. Hello all, I am confused about how a specific module method is invoked by a form rendered on the front-end and then submitted. My confusion, or rather ignorance, stems from not finding any references describing how I (or ProcessWire) determine whether an action is adding or editing a set of data. I've gotten myself surrounded by so many trees at the moment from reading blog articles and forum entries, and dissecting existing modules. I've seen <code>___execute</code> method based on url, <code>___action</code> used with suffixed name, and others with no discernible means. I can create and install a skeletal module, create and edit the module config, retrieve data from page(s), and render a form on the front-end, all without issues. But so far I am unable to get a submitted form to invoke a particular class method for saving a new data set, editing an existing data set, etc. What is the proper, ProcessWire efficient, way to have a submitted front-end form call the appropriate module method?
  23. At first glance, it appears to be a typo... ...already added a field called recipe_views_count. But your counter references $page->recipe_views_counter += 1. And your pages->find references sort=-recipe_views_count
  24. Yes, that is right. I should not have lumped atom into the same group as phpstorm. I withdraw the post
  25. I am not sure how many established ProcessWire users use the Atom IDE, but since it is free, works on linux, and has the features I like, I decided to install it. It is a very nice and comfortable interface. It would be nice to have the advanced.js provider reference the ProcessWire API directly so that users are always up to date. There are a vast number of similar IDEs, and I don't suggest that ProcessWire 'endorse' any particular one. However, I do think that having such plugins available for a few can only add to the attraction of ProcessWire.
×
×
  • Create New...