Realmac Software

Welcome to the RapidWeaver Community Forums, where you can chat with RapidWeaver users from around the world!

RW5 - How to use resource folder/images/file with aid of snippets

NormanTNormanT Middlesex, UKPosts: 1,663Members
Hi all,

For those of you who have downloaded RW5 and wondering how the heck do I use the Resource part which has taken over from Assets. Here are a couple of snippets that I have put together that you can use and download.

The first snippet is if you add a folder to the Resource - to do this right click and "Add Folder" and give it a name. You will need to obviously give a name to the folder you have created and also what your image/file is in the snippet.

The second snippet is if you just drop an image or a file into your Resource and all you will need to so is to amend the image/file name.

Good luck

Regards
Norman

PS - Please look further down this thread for an update on the images files
zip
zip
rw5-resourcefolderforimages.rwsnippet.zip
1B
zip
zip
rw5-resourcefileimage.rwsnippet.zip
1B
Evocator Forum Member with over 1650 posts on the previous forum

Its me, my mac and your money - thats a good combination!!

Comments

  • ChoctawChoctaw Posts: 52Members
    on 1291332989:
    Hi all,

    For those of you who have downloaded RW5 and wondering how the heck do I use the Resource part which has taken over from Assets. Here are a couple of snippets that I have put together that you can use and download.

    The first snippet is if you add a folder to the Resource - to do this right click and "Add Folder" and give it a name. You will need to obviously give a name to the folder you have created and also what your image/file is in the snippet.

    The second snippet is if you just drop an image or a file into your Resource and all you will need to so is to amend the image/file name.

    Good luck

    Regards
    Norman

    Norman,
    Thank you so much, I was just getting ready to ask for some help on where to find the RW5 manual on that exact topic... you rule!
    Choctaw
  • BikemanBikeman Posts: 310Members
    Thanks a million. Don't know if it is a one off on my system or not, but I had to add the closing > as it was missing on both and I got a error till I added it.

    Once again thanks so much for shedding light on this and making the snippets.
    -Bikeman
  • ChoctawChoctaw Posts: 52Members
    on 1291337779:
    Thanks a million. Don't know if it is a one off on my system or not, but I had to add the closing ] as it was missing on both and I got a error till I added it.

    Once again thanks so much for shedding light on this and making the snippets.
    -Bikeman

    Hello Bikeman,
    Well I spoke too soon on my previous message to NormanT, and then ran out the door before testing it. Upon returning I realized that those instructions weren't working for me as I am just learning RW. Would you be so kind or even Norman if he sees this to show me an example of your actual code with the snippet in the CSS.

    I had been using a tiled custom background code with the assets and it worked great on RW 4.4.2. Heres what I had been using: body { background: url(assets/my_image.jpg) repeat; } --- where is Normans snippet inserted in that code?

    Thanking you in advance... Or a link to the RW5 manual for this would help me also.

    Choctaw
  • BikemanBikeman Posts: 310Members
    on 1291342235:

    I had been using a tiled custom background code with the assets and it worked great on RW 4.4.2. Heres what I had been using: body { background: url(assets/my_image.jpg) repeat; } --- where is Normans snippet inserted in that code?

    Thanking you in advance... Or a link to the RW5 manual for this would help me also.

    Choctaw

    I think you would replace the url(assets/my_image.jpg) portion with url(% resource(my_image.jpg)%)
    Note you need to remove the space after the first % sign, i had to insert the space to keep the forum software from converting the code to &#xrc;e.
    Norman will be able to give a much more informed response i am sure. Don't forget to hightlight and choose ignore formatting.
    -Bikeman
  • NikNik Brighton, EnglandPosts: 1,692Realmac Staff
    Nik Fletcher, Product Manager, Realmac Software
    Twitter ~ Blog
  • PeppermintPeppermint Caracas, VenezuelaPosts: 155Members
    Thanks Nik,

    But how put an image on a image stack and edit it?

    (I mean, if the image is on Resources area)


    Best
    "People Helping People Be the Best They Can Be".-
  • NormanTNormanT Middlesex, UKPosts: 1,663Members
    on 1291386275:

    Nik,

    There is an error in your code insofar you will need to have the following highlighted in red before and after to make sure that it works

    rw5errorcode.jpg

    I have also replaced the two snippets for the image because of a bug that I found insofar that you could not have more than one image on the same page/header etc

    The first one is for a single use of an image and hopefully self explanatory. The second one can be used a number of times and anywhere as described earlier.

    Regards
    Norman
    zip
    zip
    RW5 Resource File Image (single).rwsnippet.zip
    1B
    zip
    zip
    RW Resource File Image (multi).rwsnippet.zip
    1B
    Evocator Forum Member with over 1650 posts on the previous forum

    Its me, my mac and your money - thats a good combination!!
  • NormanTNormanT Middlesex, UKPosts: 1,663Members
    on 1291389789:
    Thanks Nik,

    But how put an image on a image stack and edit it?

    (I mean, if the image is on Resources area)


    Best

    That is one of the things I have been looking and to be honest there are absolutely no controls for this. It appears that you just have to put the image into the stack and then go from there.

    Regards
    Norman
    Evocator Forum Member with over 1650 posts on the previous forum

    Its me, my mac and your money - thats a good combination!!
  • ChoctawChoctaw Posts: 52Members
    on 1291349853:
    on 1291342235:

    I had been using a tiled custom background code with the assets and it worked great on RW 4.4.2. Heres what I had been using: body { background: url(assets/my_image.jpg) repeat; } --- where is Normans snippet inserted in that code?

    Thanking you in advance... Or a link to the RW5 manual for this would help me also.

    Choctaw

    I think you would replace the url(assets/my_image.jpg) portion with url(% resource(my_image.jpg)%)
    Note you need to remove the space after the first % sign, i had to insert the space to keep the forum software from converting the code to &#xrc;e.
    Norman will be able to give a much more informed response i am sure. Don't forget to hightlight and choose ignore formatting.
    -Bikeman

    Hello Bikeman,

    I remember, I DID forget to highlight and choose to ignore formatting with the new snippet and resources. I'm sure that very well could have been it. I also see a link from Nik Fletcher on a guide on using the new resources. Thank you for your reminder as I will delve back into it along with the RW5 guide on resources a little later and I'm sure work it out...

    Choctaw
  • PeppermintPeppermint Caracas, VenezuelaPosts: 155Members
    on 1291390591:
    on 1291389789:
    Thanks Nik,

    But how put an image on a image stack and edit it?

    (I mean, if the image is on Resources area)


    Best

    That is one of the things I have been looking and to be honest there are absolutely no controls for this. It appears that you just have to put the image into the stack and then go from there.

    Regards
    Norman

    So, it must be done "in the old-fashioned way"
    Thanks Norman for the snippets.

    Best
    "People Helping People Be the Best They Can Be".-
  • NormanTNormanT Middlesex, UKPosts: 1,663Members
    Just to let you know that V5.0.1 is available and can be seen at this thread - you can of course upgrade from within RW itself by just clicking on Rapidweaver and clicking "Check for Updates" and is worthwhile updating.

    The snippets that I have posted above work and you don't need to use the multi snippet as either the original or single now works. I have also tested the folder snippet and that is now working correctly. One thing about using these images in the Resource is that you will need to have them re-sized correctly as there are no controls. There is no need to highlight the codes and apply "Ignore Formatting" as I have found you don't need this.

    If you want to have images in your stacks or elsewhere and want to have some control over re-sizing of images etc then do not place them into Resources and do it the "old fashioned way".

    Regards
    Norman
    Evocator Forum Member with over 1650 posts on the previous forum

    Its me, my mac and your money - thats a good combination!!
  • CrinslerCrinsler Posts: 10Members
    Its the easiest method to save any downloaded file, in any format as it better to make downloading files in zip format.
    <a href="http://www.neosofttech.com/application_migration.htm">Software Application Maintenance</a> | <a href="http://www.neosofttech.com/hire_php_developers.htm">PHP Developers</a>
  • NormanTNormanT Middlesex, UKPosts: 1,663Members
    on 1291788113:
    Its the easiest method to save any downloaded file, in any format as it better to make downloading files in zip format.

    Yes - that is true.

    Just bumping this thread so that it gets more visibility!!

    Regards
    Norman
    Evocator Forum Member with over 1650 posts on the previous forum

    Its me, my mac and your money - thats a good combination!!

Leave a Comment

bolditalicunderlinestrikecodeimageurlquotespoiler