Jump to content

ashrai

Members
  • Posts

    13
  • Joined

  • Last visited

ashrai's Achievements

Jr. Member

Jr. Member (3/6)

3

Reputation

  1. Thanks, I'll take a look inside the error logs and turn on debugging. @soma: the script has nothing to do with the php code - at least not directly. It just replaces the content of a div. As long as I load plain html, everything works well. The moment I load the php script (which works, as long it's just within the code of my main (starting) page, named index.php) I get an internal server error. Ok, I'll post what's within the logs next monday, as I'm afk until sunday.
  2. hey folks, doing my second website, now. Featuring jquery voodoo stuff, I'm just getting started with. There's a problem: I want to replace the content of a div via jquery by using this code: ---snip--- $(document).ready(function() { $("#sidebar a, #cycle a").live("click",function() { var pageToLoad = $(this).attr("href"); $("#cycle").load(pageToLoad); return false; }); }); ---snip--- It all works well if I just use html or standard php syntax like "echo". But: When I try to get some URLS out of Processwire, like this: ---snip--- <?php $logochild = $pages->get('/referenzen/logos/')->children('limit=1, sort=-date'); foreach ($logochild as $k => $n) { echo "<div id='col0'>"; echo "<div style='ref'>"; echo "<img class='refimage_home' src='{$n->ref_image->url}' alt='{$n->ref_image->description}' /></div>"; } echo "</div>"; ?> ---snip--- I get an internal server error 500 and nothing is displayed inside my div. The code works and if placed inside my index.php, everything is running fine. Where's the problem? Maybe the permissions? thanks for help, Ashrai //edit: the script is stored outside the templates folder, in "site/script". The various files I want to load on demand are also there. Also, there's a reason i use "limit=1. The list will be expanded later, when more children have been added and to be flexible with the design, which is not final at the moment.
  3. Yes, that's it. Replaced tinyMCE with version 3.4.7, now everything is fine. Thanks!!! =)
  4. Nothing missing there, "textarea" modules and fieldtypes are there. All the the other fields are working, strangely. //edit: can't even create new Pages. All I get is the blank container. =/ Seems like the problem just occurs with "textarea". //edit2: Created a new Field called "fliesstext2 with the textarea style. Doesn't work. But: It works if I disable tinyMCE. Ok: TinyMCE is the Problem. Doesn't work in Safari/Chrome/FF either. Maybe read/write restrictions? Surely tinyMCE needs access to some of the files? It works on my local installation. =(
  5. Hi folks, I'm in need of your help again. Like the subject says: The original content is displayed on the site, but I can't edit it anymore. What could it be? =/
  6. Hey folks, Thanks to your help: my first project is done - and running fine on an Apache (local) server. I've already checked the requirements and set up a new database on the webserver. Now, how do I transfer my project to a webspace? Reinstall Processwire there and then add templates or ... ? I'm a bit stuck, I have to admit ... So what would be the easiest way to get my site online for testing? thanks in advance ashrai
  7. It's all running perfectly. Thanks to all of you. Date, Headline, Teaser, everything. Now I'm doing the archive. With my newly earned mad processwire skillz, this shouldn't be a problem.
  8. "You can create pages as children of a hidden page on the page tree (they wont appear on the menu) then import them into a template using $pages (see cheatsheet)" That's what I've done - works fine! I forgot to ask two questions: How can I output the date a page was created? Just echo $newsitem->created? And can I change the output format to DD.MM.YYYY? And how can I create the data-field to re-date pages? Oh my head feels like a mistreated gearbox ^^ Thanks for your patience! All will be good in a few months
  9. Thank you so much!! This is great! Ah ... obviously I'm at the very beginning. Never thought about using the iteration index (never knew there was such a thing ^^). I'll give it a try! Okay, let's boldly go where no graphics designer has gone before ... at least me. //edit: is it possible to sort the news by "manual drag and drop"? (sort= ) And how do I get get the date a page was created? maybe $page->created ... ah, where' s the cheatsheet
  10. Hey folks, with your help, I created my first processwire page with several templates and an automated main navigation, which builds "itself" based on its children, editable text and editable images. Yeah! Now the next step: I've got 3 News-Items on my homepage. Now I want it to grab the first 3 children of a (not listed, because I'll build the news-archive later on) news-page and display two of their fields ("headline" and "teasertext") within my news-boxes. The problem is that I can't automate the process, because every newsbox has a slightly different CSS Style for proper positioning. So foreach($blabla as $blabla)... won't work. What would be the best approach to do realize these three newsboxes as simple as possible?
  11. Ah I see, this is the CSS class. Thanks!
  12. Hi diogo, this explains why I haven't found it! Thank you! I'll try this at once. //edit: Yes, that worked! Many thanks! I understood the syntax, too, I think. My only problem ist: Why do I need the "Class=Photo" Attribute as shown in the tutorial code? What does it do? I create an Instance of $image and I thought that this already is the php class I need to display/resize/etc. ... my image. Did I get something wrong?
  13. hey there, sorry for dumb questions ... but I am a total boon concerning php and cms developement. Just had some minor contact with contao and wordpress. Now I decided to learn how to use a cms and got stuck with processwire. I love the general idea of it. =) So ... I followed the "getting started" tutorial and I was impressed how fast my first editable text areas emerged "out of nowhere". Now I tried to place an editable/changeable image. And I have no clue how to do this. If I search this forum all I find are advanced solutions for sorting images and so on. Help. Sorry again - I'm at the very beginning.
×
×
  • Create New...