Jump to content

Wanze

PW-Moderators
  • Posts

    1,116
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Wanze

  1. Sorry I didn't read carefully. Yes, the fields and their data are stored in the database. Also the templates, but not their content, that's in the template file itself (/site/templates/). Do you know which version you had installed? Download the same version of processwire. Delete the install.php file. In the site/config.php set the correct settings pointing to your existing mysql database. Try to log into your admin, I think it should work.
  2. Well, you need a backup of your files. At least from the /site/ folder, because all files (template, images etc.) are inside. Don't you have one?
  3. What about: processwire-das-beste-opensource-cms-cmf-der-welt.de
  4. $i=1; foreach($latest_portfolio as $item) { $lastClass = ($i % 3 == 0) ? " last" : ""; //.... echo '<div class="span3'.$lastClass.'"><article //... //... $i++; }
  5. This is great!! Need to get some sleep now
  6. $my_page->numChildren does also count hidden (maybe unpublished) pages, while $my_page->children does not include them by default. If you use count($my_page->children("include=hidden")), it's the same number Edit: Too late again
  7. No Problem for Pw. Instead of a module, you have to generate the markup for the slider in your template. For example, check the documentation section of your first link: http://dimsemenov.com/plugins/royal-slider/documentation/ Do all the steps as described (add js, css etc..). Then simply grab the Images / Text from the fields. <!-- STEP 2, see the docs from the link above --> <div class="royalSlider rsDefault"> <?php foreach ($page->images as $image) { echo "<div>"; echo "<img class='rsImg' src='{$image->url}' alt='{$image->description}'>"; echo "<p>{$image->description}</p>"; echo "</div>"; } ?> </div> The code above would create a slide for each Image with the description text below. As far as you only want to slide Image + Text, there's no need for a repeater. You can use a field of type Image which allows you already to store multiple images with descriptions
  8. This is possible Create a field of type "FieldsetOpen". In your template, just sorround your fields you want to wrap in this fieldset with the fieldset created. //Example for fieldset with name "fieldset_advanced": fieldset_advanced date summary fieldset_advanced_END Btw there exists also a "FieldsetTabOpen", which displays the wrapped fields in a new Tab
  9. Just a thought: If you write "März" in the template, does it output the Umlaut correctly? If not, then maybe the template file itself is not UTF-8 encoded.
  10. Do you want for example to redirect always to the first child of a landing page? You could give your landing pages a template "redirect" and in the template file: $session->redirect($page->children->first()->url); This would redirect you to the first child-page
  11. Wanze

    other CMSs

    Does anyone know the CodeIgniter based "ionize cms"? http://ionizecms.com Some months ago I gave it a try but never used it in a project. I was looking for a "native-multilang-friendly" cms which can handle as many languages as I need with only one site-tree. Seems like there's also a new version out this year. Demo available, link is on the homepage. Cheers
  12. There's a mistake in the foreach: You have to replace "$page" with "$item". <?php $latest_portfolio = $pages->get("/referenzen/")->children(); foreach($latest_portfolio as $item) { $thumb = $item->portfolio_image; //Note the change from $page to $item echo '<a href="' . $item->url . '"> //Note the change from $thumb to $item... or do you want to link to the image? <img src="' . $thumb->url . '" alt="' . $thumb->description . '" </a>'; } ?> Also you want to check if there's really an image before outputting the img tag, as ryan mentioned above.
  13. Images are stored in "site/assets/files/{page_id}/your_filename.jpg". Go to the page in the Admin and right-click on the Image/Thumbnail -> Open in new Tab. This should open the image, you can now save it via Browser. (Not sure if this is the way you meant with "download")
  14. True In my Case I already have the DB Design (normal MySQL Tables) with > 2000 records. I will model every table with a template and the relations with page fields. And finally I'll have to write some scripts to import this stuff into pw, but that's an easy task with the API. I hope my client accepts that I use Pw to implement everything, otherwise the Project wouldn't be fun ;-)
  15. Looks great! Maybe I can use Pw in a similar way for an upcoming project (not as complex as your app), but also using the Admin with Process-Modules to interact with the database. Good to see that everything seems possible! What's behind the UI? Bootstrap?
  16. Check out this awesome module from apeisa, which lets you set up your rewrite rules in the Pw Admin: http://modules.proce...cess-redirects/ If you still want to add your redirects in the .htaccess, this is the way I normally do it (not testet) RewriteRule ^index.html$ /startseite/ [R=301,L] //Make sure your redirect is above the following Code.. RewriteCond %{REQUEST_URI} "^/~?[-_.a-zA-Z0-9/]*$" Argh soma My excuse beeing slow: I'm from berne... *chch*
  17. Hi Alex, For the sensitive data, maybe the secured pagefiles introduced with PW 2.3 are an option for you. Here's what ryan posted in the 2.3 announcement thread:
  18. Hi sw_double and welcome here Not sure if this is causing the current output, but i think you can't say "sort=random", unless random would be a field defined on the portfoilo-item template. Maybe i'm wrong, but I haven't found this in the docs / cheatsheet. Can you try with these lines? //Find the siblings... leave away sort=random and path != {$page->path} $items = $page->siblings("template=portfolio-item"); //If $items still contains the current page (not sure if this is by default...) -> remove it from $items $items->remove($page); //Get one random page $random_item = $items->getRandom(); //Get multiple random pages $count = count($items); $random_items = $items->getRandom($count); //or even better... $random_items = $items->shuffle(); The cheatsheet is your best friend when it comes down to finding useful methods/properties http://processwire.com/api/cheatsheet/ Cheers
  19. Schöni wiehnachte und ä guete Rutsch is neue Jahr
  20. You can set the cache time to zero: $cache->get('your_cache_id', 0);
  21. Dates are stored as unix-timestampes in the Database. ProcessWire does format them in templates when outputFormating is on. Try this: $s = strtotime($start_date); $e = strtotime($end_date); $r = $pages->find("template=transaction, datetime>=$s, datetime<=$e);
  22. There also exists the MarkupCache module (in core), which lets you easily cache your queries/markup for an amount of time:
  23. Sounds like you want to do something similair as here:
  24. I like that idea! I'm studying and sometimes work as freelancer. A Project based on ProcessWire would be fun
×
×
  • Create New...