Jump to content

KunGu

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

605 profile views

KunGu's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. Hi all, I just lost a lot of time while playing with the repeater fieldtype working with imagefields and textfields. I added to a repeater fieldtype : checkbox fieldtype image fieldtype text fieldtype And I modified, like I do often, the Visibility and Required settings. So when I my checkbox is unchecked, the image field is displayed and required, and the text field is hidden (and not required). And vice-versa when my checkbox is checked. The problem is that when I use these settings, I'm unable to delete the images I upload (but I can add them), and unable to modify my text field. When I click on Save, the changes are not submitted. Does somebody already had this issue ? Thank you !
  2. Thanks a lot for your reply, I was not so far ! I thought that Heredoc was not the good way to go. I think it's heavy going to include some fields from PW with the heredoc syntax, and heavy going too to add contents like that : // ultra simplified example $myVariable = "<p>"; $myVariable .= "content"; $myVariable .= "</p>"; That's why I thought there was an easier way to go ! Thank you EDIT : Ok I just found out that I can use PHP variables into the Heredoc with {}. I thought I had to close Heredoc and reopen it. It's a lot easier now. Problem resolved !! Thanks again !
  3. Hi all! I'm totally new in CMS integration, and I chose PW to start my learning. After following the tuts available, I've launched myself in the "Delayed ouptut" approach to start. I'm now facing a problem, I think I misunderstood one of the basis concepts. I integrated the header and the footer of my website by writing HTML code to my main.inc, I think I'm ok for that. I just started to create my templates files for the homepage and here comes the questioning. I have some static content like a slider to put on the top of the body, so I have a large HTML code to write, and I don't want to be managed from PW. What is the best approach to integrate it ? Firstly I put my HTML code into my home.php, but I realized that I have to put it in a variable wich will be output in the main. But how can I integrate a large portion of code in one variable ? Using Heredoc ? Or do I have to create a separate file ? Thank you in advance for whom will give me some assistance I'm now a bit lost, and I don't want to use hacking tricks.
×
×
  • Create New...