[Radiant] Text Assets & regarding Paul Standigs images article
Sean Cribbs
seancribbs at gmail.com
Tue Aug 15 08:50:17 CDT 2006
If you're running Apache or lighttpd, they will automatically look for files
in the public/ directory before sending on the request to Rails/RadiantCMS.
So if you want to put your images in the public/images directory, the web
server will be able to find them.
Sean Cribbs
seancribbs.com
On 8/15/06, Michael Moscow <mike at mikemoscow.com> wrote:
>
> first, thanks to Sean Cribbs & Paul Standig for their advice.
>
> In regards to paul's article, right now I'm running radiant locally
> on os x 10.4.7 and I'm having trouble locating exactly which files
> you edited in order to redirect your server to look for images in
> another directory.
>
> Also did you place your 'site-images' folder in the same place as
> public/images? Would having this setup running locally off my mac be
> possible if I edit the correct files?
>
> I have a shared hosting account at textdrive where I would eventually
> like to serve my site from... is configuring the server file to look
> for images in another directory per Paul's article something that is
> commonplace when you dont specifically have ownership of the server?
>
> thanks folks,
> mike
>
> p.s. I just want to remind everyone that I'm a total goofball when it
> comes to back-end systems, databases, servers, etc. so please
> forgive me if my questions are stupid
>
> On Aug 15, 2006, at 8:00 AM, radiant-request at lists.radiantcms.org wrote:
>
> > Send Radiant mailing list submissions to
> > radiant at lists.radiantcms.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://lists.radiantcms.org/mailman/listinfo/radiant
> > or, via email, send a message with subject or body 'help' to
> > radiant-request at lists.radiantcms.org
> >
> > You can reach the person managing the list at
> > radiant-owner at lists.radiantcms.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Radiant digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Re: Simplify with Behaviors (Caylan Van Larson)
> > 2. Re: Simplify with Behaviors (John W. Long)
> > 3. Links to Previous Next Pages (Andrew Barnett)
> > 4. Re: Radiant Digest, Vol 5, Issue 26 (Paul Stadig)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Mon, 14 Aug 2006 16:37:22 -0500
> > From: Caylan Van Larson <caylan at mac.com>
> > Subject: Re: [Radiant] Simplify with Behaviors
> > To: radiant at lists.radiantcms.org
> > Message-ID: <1FB10B56-420F-4245-93B7-DE92085BDF42 at mac.com>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > /me ports a snippet to markaby for giggles.
> >
> > dl.sub-nav! do
> > r.if_url_matches "^/$" do
> > r.find_url("/membership").each do |p|
> > dd.send(p.current_page?) { link_to p }
> > end
> > end
> > end
> >
> > Please... for the love of KIS, let's start to move away from the
> > gobbly gook that is radius (at least within the domain of
> > radiant.layouts).
> >
> > :-)
> >
> > ---
> >
> > Caylan
> >
> >
> > On Aug 14, 2006, at 2:10 PM, Mac Baker wrote:
> >
> >> Hi all,
> >>
> >> I'm almost finished with a site built on radiant (my first). But I
> >> still don't understand behaviors fully.
> >>
> >> I have a sub-navigation which changes based on the URL, But I can't
> >> help but feel that:
> >> A) there is a easier, cleaner way to do this even without behaviors
> >> and
> >> B) It seems like this would be something to write a behavior for (I
> >> think)
> >>
> >> Here is the code, any suggestions?
> >>
> >> (also, the if_url to set the class to "activelink" doesn't seem to
> >> work.
> >> It works if it is hard coded but the slug doesn't seem to return
> >> the right value while in the if_url context.)
> >>
> >> (and yes I know about the navigation tag, but I'd still need to
> >> check the url and
> >> iterate through the children to build the array.)
> >>
> >> (and....just in case you were wondering why, I don't want to see
> >> the children of each page, I want to see the children of each
> >> section throughout each page in the entire section
> >> Area
> >> Section
> >> Page
> >> Page <-- If here, still show section and section children
> >> Page
> >> Page
> >> Page )
> >>
> >>
> >>
> >> # START sub-nav snippet
> >>
> >> <dl id="sub-nav">
> >> <r:if_url matches="^/$">
> >> <r:find url="/membership">
> >> <r:children:each>
> >> <dd <r:if_url matches="^/<r:slug /
> >>> ">class="activelink"</r:if_url>><r:link /></dd>
> >> </r:children:each>
> >> </r:find>
> >> </r:if_url>
> >> <r:if_url matches="^/membership">
> >> <r:find url="/membership">
> >> <r:children:each>
> >> <dd <r:if_url matches="^/membership/<r:slug /
> >>> ">class="activelink"</r:if_url>><r:link /></dd>
> >> </r:children:each>
> >> </r:find>
> >> </r:if_url>
> >> <r:if_url matches="^/about">
> >> <r:find url="/about">
> >> <r:children:each>
> >> <dd <r:if_url matches="^/about/<r:slug /
> >>> ">class="activelink"</r:if_url>><r:link /></dd>
> >> </r:children:each>
> >> </r:find>
> >> </r:if_url>
> >> <r:if_url matches="^/articles/">
> >> <r:find url="/articles">
> >> <r:children:each>
> >> <dd <r:if_url matches="^/articles/<r:slug /
> >>> ">class="activelink"</r:if_url>><r:link /></dd>
> >> </r:children:each>
> >> </r:find>
> >> </r:if_url>
> >> <r:if_url matches="^/resources">
> >> <r:find url="/resources">
> >> <r:children:each>
> >> <dd <r:if_url matches="^/resources/<r:slug /
> >>> ">class="activelink"</r:if_url>><r:link /></dd>
> >> </r:children:each>
> >> </r:find>
> >> </r:if_url>
> >> <r:if_url matches="^/community">
> >> <r:find url="/community">
> >> <r:children:each>
> >> <dd <r:if_url matches="^/community/<r:slug /
> >>> ">class="activelink"</r:if_url>><r:link /></dd>
> >> </r:children:each>
> >> </r:find>
> >> </r:if_url>
> >> </dl>
> >>
> >>
> >> # end sub-nav snippet
> >>
> >> Mac Baker
> >>
> >>
> >> _______________________________________________
> >> Radiant mailing list
> >> Radiant at lists.radiantcms.org
> >> http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: http://lists.radiantcms.org/pipermail/radiant/attachments/
> > 20060814/0944dc7e/attachment-0001.htm
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Mon, 14 Aug 2006 18:17:34 -0400
> > From: "John W. Long" <ng at johnwlong.com>
> > Subject: Re: [Radiant] Simplify with Behaviors
> > To: radiant at lists.radiantcms.org
> > Message-ID: <44E0F67E.30402 at johnwlong.com>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > Caylan Van Larson wrote:
> >> Please... for the love of KIS, let's start to move away from the
> >> gobbly
> >> gook that is radius (at least within the domain of radiant.layouts).
> >
> > Not everyone can afford to let users put ruby code in the database.
> >
> > Your plugin for markaby makes it simple enough, eh? ;-)
> >
> > --
> > John Long
> > http://wiseheartdesign.com
> >
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Tue, 15 Aug 2006 08:29:30 +1000
> > From: Andrew Barnett <andrew at andrewbarnett.net>
> > Subject: [Radiant] Links to Previous Next Pages
> > To: radiant at lists.radiantcms.org
> > Message-ID: <1DF0775B-BDF2-4C47-97C7-07E3CCFD7662 at andrewbarnett.net>
> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> >
> > Okey,
> >
> > here's a simple one that I've been unable to find in the list
> > archives: when using Radiant as a weblog and I display a single post,
> > how can I refer to the previous and next pages so I can do the the
> > previous/next link thingy? OK, I imagine I can use r:children with an
> > offset, but where do I place it so it only renders when viewing a
> > single page?
> >
> > andrew
> >
> >
> > ------------------------------
> >
> > Message: 4
> > Date: Mon, 14 Aug 2006 21:24:44 -0400 (EDT)
> > From: "Paul Stadig" <paul at stadigtech.com>
> > Subject: Re: [Radiant] Radiant Digest, Vol 5, Issue 26
> > To: radiant at lists.radiantcms.org
> > Message-ID:
> > <50780.138.88.213.72.1155605084.squirrel at www.stadigtech.com>
> > Content-Type: text/plain;charset=iso-8859-1
> >
> > Michael,
> > I'm not sure what the official recommendation is, but like Sean
> > said if
> > you have text assets you can just put them right into Radiant.
> >
> > If you have the ability to configure your web server, then one way
> > to add
> > binary content to your website is to force your web server to find the
> > binary files in the filesystem. I have posted an example of how I
> > set up
> > my web server to find my site's images in a separate directory
> >
> > http://stadigtech.com/blog/archive/2006/08/01/images-in-radiant-0-5/
> >
> > This example is for lighttpd, but could be adapted for apache. The
> > same
> > technique could be used for swf files, as well.
> >
> > HTH,
> > Paul Stadig
> >
> >> ------------------------------
> >>
> >> Message: 3
> >> Date: Mon, 14 Aug 2006 11:55:35 -0400
> >> From: Michael Moscow <mike at mikemoscow.com>
> >> Subject: [Radiant] images, stylesheets and scripts - OH MY!
> >> To: radiant at lists.radiantcms.org
> >> Message-ID: <272857AF-9721-48A6-8DD8-A6777BEA60E6 at mikemoscow.com>
> >> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> >>
> >> Hello all.
> > [snip]
> >> For instance, If I had more than one css stylesheet that I would like
> >> to use how do I refer to it? Do i just put it in the public/
> >> stylesheets directory and refer to it there through the xhtml? Or do
> >> I create a new layout AND a new Page with css via the admin
> >> interface?
> >>
> >> The same for javascripts... it seems logical to put them in the
> >> javascript folder and just refer to them from the xhtml. How about
> >> for swf's? I searched all over the radiant mailing list archives and
> >> google and I really couldnt find anything.
> >>
> >> What is the official recommendation then to add stylesheets,
> >> javascritps, swf's and images to radiant websites?
> >>
> >> thanks,
> >> Mike
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > Radiant mailing list
> > Radiant at lists.radiantcms.org
> > http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> >
> > End of Radiant Digest, Vol 5, Issue 27
> > **************************************
> >
>
> _______________________________________________
> Radiant mailing list
> Radiant at lists.radiantcms.org
> http://lists.radiantcms.org/mailman/listinfo/radiant
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20060815/b2bde261/attachment.html
More information about the Radiant
mailing list