From: Greg M. <cap...@ya...> - 2004-06-08 22:02:55
|
Hello everyone, I've got a client who wants to have a different look to a few sections of a website I'm helping create for them. I had wanted to use phpwebsite for this site, but now I'm not sure if I can. I had thought about using branches to achieve the multiple themes, but I don't think that's going to work because branches can't share data. I remembered Wendall's W3C theme, but that appears to just change the stylesheet and not the layout. (Yes, unfortunately, they want a layout change as well.) Has anyone played around with this idea? I don't know if I could do fancy things in the theme.php file to help achieve this for them. I was just throwing this question out there to see if others have tried this or know of how this is possible. I pretty sure you're going to tell me that I'm up a creek without a paddle, but I figured it's worth a shot. Thanks in advance! Greg --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger |
From: Wendall C. <wen...@to...> - 2004-06-10 16:29:44
|
Greg, There may be a way to do this with some experimentation. There would be a bit of code that needs written to grab request vars to see what theme to display. I'm not so sure it wouldn't run slow as hell though, since you'd be reloading all the layout vars in to the sessions every time a page changed themes. Wendall On Tue, 2004-06-08 at 15:02, Greg Meiste wrote: > Hello everyone, > > I've got a client who wants to have a different look to a few sections > of a website I'm helping create for them. I had wanted to use > phpwebsite for this site, but now I'm not sure if I can. I had > thought about using branches to achieve the multiple themes, but I > don't think that's going to work because branches can't share data. > > I remembered Wendall's W3C theme, but that appears to just change the > stylesheet and not the layout. (Yes, unfortunately, they want a > layout change as well.) > > Has anyone played around with this idea? I don't know if I could do > fancy things in the theme.php file to help achieve this for them. I > was just throwing this question out there to see if others have tried > this or know of how this is possible. > > I pretty sure you're going to tell me that I'm up a creek without a > paddle, but I figured it's worth a shot. > > Thanks in advance! > Greg > > > ______________________________________________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger -- "Only the ideas that we really live have any value." --Hermann Hesse (Demian) |
From: Spiggy T. <sp...@vi...> - 2004-06-10 16:54:02
|
> I remembered Wendall's W3C theme, but that appears to just change the > stylesheet and not the layout. (Yes, unfortunately, they want a layout > change as well.) if your files are done right (no tables etc old skool stuff) you can change a whole lot by just changing the stylesheet. see examples at http://csszengarden.com/. but this requires quite a bit from the generated html output. > > Has anyone played around with this idea? I don't know if I could do > fancy things in the theme.php file to help achieve this for them. I was > just throwing this question out there to see if others have tried this > or know of how this is possible. i hacked together an example where you would use a different theme based on a module... but i am not sure if thats enough for you. basically just before displaying the tpl file you have a switch based on the current module to determine the right tpl file. spiggy -- Give a man a match, and he'll be warm for a minute, but set him on fire, and he'll be warm for the rest of his life. (Terry Pratchett) |
From: Greg M. <me...@ms...> - 2004-06-19 15:25:16
|
I'd like to see your (or anybody else's) code example that switches the theme based on the active module. If you don't have a spot I can downloa= d it, could you please send it to me as an email attachment? Thanks! Greg > > i hacked together an example where you would use a different theme base= d > on a module... but i am not sure if thats enough for you. basically jus= t > before displaying the tpl file you have a switch based on the current > module to determine the right tpl file. > > spiggy > -- > Give a man a match, and he'll be warm for a minute, but set him on fire= , > and he'll be warm for the rest of his life. (Terry Pratchett) > > > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers > |
From: Greg M. <me...@ms...> - 2004-06-29 19:13:32
|
Hello all. I have a quick question about templating. I have a item class with a few vars that are not required. In that item class, I have a view function.=20 That view function sets up the tags then calls the process template function. Right now with those optional vars is that the label is showing but then there is no data to show with it. I set up my view.tpl to be like this: <!-- BEGIN DATUM2 --> {DATUM2_LABEL}:<br /> {DATUM2}<br /><br /> <!-- END DATUM2 --> with Datum2 being an optional field. Even set up like that, the label still shows. I was hoping that with it set up like that, the code chunk wouldn't show even though the DATUM2_LABEL is present. Am I going to hav= e to check every label before adding it to the tags? [i.e. if(isset(datum2))....] I'm hoping there is a more "graceful" way that having an if statement for all the variables (there is a lot of them). I hope all that made sense. Any thoughts anyone? Thanks in advance. Greg |
From: Don S. <do...@se...> - 2004-06-29 19:21:09
|
Yes in my experience I've had to only conditionally define the label as well. Don. On Tue, Jun 29, 2004 at 02:13:18PM -0500, Greg Meiste wrote: > Hello all. >=20 > I have a quick question about templating. I have a item class with a few > vars that are not required. In that item class, I have a view function.= =20 > That view function sets up the tags then calls the process template > function. >=20 > Right now with those optional vars is that the label is showing but then > there is no data to show with it. I set up my view.tpl to be like this: >=20 > <!-- BEGIN DATUM2 --> > {DATUM2_LABEL}:<br /> > {DATUM2}<br /><br /> > <!-- END DATUM2 --> >=20 > with Datum2 being an optional field. Even set up like that, the label > still shows. I was hoping that with it set up like that, the code chunk > wouldn't show even though the DATUM2_LABEL is present. Am I going to have > to check every label before adding it to the tags? [i.e. > if(isset(datum2))....] >=20 > I'm hoping there is a more "graceful" way that having an if statement for > all the variables (there is a lot of them). >=20 > I hope all that made sense. Any thoughts anyone? >=20 > Thanks in advance. >=20 > Greg >=20 >=20 > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers --=20 "So, on behalf of a well-oiled unit of people who came together to serve something greater than themselves, congratulations." George W. Bush May 31, 2001 White House ceremony honoring the University of Nebraska women's volleyball team, the 2001 NCAA Champions. |
From: Luis T. <lsa...@co...> - 2004-06-14 22:12:20
|
Hi, I have some questions: 1.- Does phpwebsite support sections for news??? 2.- How can I display all news for one section?? (like phpnuke) ========================================= Saludos, Luis Sanchez Tapia. M@il: lsa...@co... lui...@ya... Cell: 97626928 ---------- Original Message ----------- From: Greg Meiste <cap...@ya...> To: php...@li... Sent: Tue, 8 Jun 2004 15:02:10 -0700 (PDT) Subject: [Phpwebsite-developers] Multiple themes for one site > Hello everyone, > > I've got a client who wants to have a different look to a few > sections of a website I'm helping create for them. I had wanted to > use phpwebsite for this site, but now I'm not sure if I can. I had > thought about using branches to achieve the multiple themes, but I > don't think that's going to work because branches can't share data. > > I remembered Wendall's W3C theme, but that appears to just change > the stylesheet and not the layout. (Yes, unfortunately, they want a > layout change as well.) > > Has anyone played around with this idea? I don't know if I could do > fancy things in the theme.php file to help achieve this for them. I > was just throwing this question out there to see if others have > tried this or know of how this is possible. > > I pretty sure you're going to tell me that I'm up a creek without a > paddle, but I figured it's worth a shot. > > Thanks in advance! > Greg > > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger ------- End of Original Message ------- |
From: Steven L. <st...@tu...> - 2004-06-24 12:58:20
|
On Mon, 2004-06-14 at 18:02, Luis S=C3=A1nchez Tapia wrote: > Hi, > I have some questions: > 1.- Does phpwebsite support sections for news??? Yes it does but phpWebSite calls them categories. If you add categories under the Fatcat administrator, these categories should then show up when you are creating a new or editing an announcement. > 2.- How can I display all news for one section?? (like phpnuke) Go to the Menu Manager module and edit the menu you want to add the link to. Click the "Add Module Default" button. Then select the dropdown option which will add "Announcements" to your menu. Finally name it and choose where you want it to show. This will give you a categorized display of all the announcement. Copy the individual links to show the announcements for one category at a time. --=20 Steven Levin Computer Systems Admin I Electronic Student Services Appalachian State University Phone: 828.262.6740 http://phpwebsite.appstate.edu |