Use of images in templates

One of the things that has always bothered me about Apex templates is that they use IMG tags (extensively!) instead of pure CSS. This makes it harder to switch look-n-feel by switching stylesheets.
Take the example of the Reports Region template in Theme 10 (the theme I use the most)
The template has
< img src="#IMAGE_PREFIX#themes/theme_10/region_left_top.gif" alt=""/>This should (IMHO) be
< span class="t10ReportsRegion_left_top top_dims">& nbsp;< /span>and the stylesheet should have
span.t10ReportsRegion_left_top {
background-image:url(#IMAGE_PREFIX#themes/theme_10/region_left_top.gif);
span.top_dims {
display:block;
width:7px;
height:21px;
}This makes the page HTML markup semantically "pure" and the look-n-feel is controlled 100% by CSS (as it should be).
I changed the Reports Region template to do this at http://htmldb.oracle.com/pls/otn/f?p=24317:21 and it works fine.
Yes, it is a lot of work and there is really no real advantage to be gained unless all the templates in all the themes are made IMG-free but I think the benefit is worth it as we start to build more dynamic look-n-feel applications with changeable "skins" as we talk about recently on other threads.
Thanks

Hello,
Ah but IE even IE 7 does not correctly cache background-images so what you end up with is a page in IE that has to load the images every time which increase page weight, slows page loading and puts a bad flicker on the screen. You can even see this in some of the themes and the builder on slower connections in IE.
It's just another one of those things someone needs to write Mr. Gates about
Carl

Similar Messages

  • I am trying to use the business card template, but every time I go to copy/paste, my original image won't paste, and everything else disappears.  Anyone have any thoughts on this?

    I am trying to use the business card template.  But every time I go to copy/paste my original image (which I have grouped according to directions) it won't paste, and everything else disappears.  Anyone got any thoughts on this?

    OK I'll bite.
    What business card template?
    What directions?
    What Pages?
    What OSX? Somehow I don't believe the Mac OSX 10.5.8.
    What thoughts?
    Peter

  • Unable to use an image in a DVD menu background

    I've been unsuccessful in using an image as the background in the DVD main menu in PE 9.  The image shows up correctly in the preview, but not in the burned DVD.  I'm a long time user of PE 2.0 and never had this issue.  I've tried different image sizes (720x486, 720x480, 640x480), different image formats (jpg, bmp, psd), and different menu templates with no success.  The only thing that worked was specifying a frame out of the video.  Please help so I don't create any more drink coasters!

    Barry,
    Welcome to the forum.
    This appears to be a Bug in PrE 9, and there are several threads on the same issue. It seems that some Menu Sets perform OK, some will not accept a new background image, and some will accept it for either the Main, or the Scene Selection Menu, but not both.
    I'll find a few of those, and link to this thread, for your reading. In the meantime, I would suggest filing a Bug Report with Adobe, so that they will know to work on correcting this problem.
    Good luck,
    Hunt

  • How can I add .PNG images to templates without getting a white background?

    I'm having problems with a image field when I add a .png image which doesnt have a background it is showing up with a white background. Is it possible to use images in templates so you can overlay them on something else?

    Hi, You can do this but only with a PNG with a palette of 256 colors (maybe GIF as well) so doesn't get a lot of use, good enough for image buttons and the like, but might be ok for your image as it does not have that many colors. Otherwise radzmar's suggestion would be the better approach.
    This is the link I was tring to find (in your previous thread) that tells how to do it using GIMP (a free image editor), http://smartforms.business.gov.au/DeveloperResources/Pages/HintsandTips.aspx ,  but the one I have uploaded here comes from photoshop (in photoshop it is called an indexed png).
    Regards
    Bruce
    p.s. I'm always on the lookout for a new beer to try if this one you would recommend? 3% and all.

  • Using an image as label in Spry Accordion Menu

    I was wondering if it was possible to use an image instead of
    text in the spry accordion menu. I have replaced the text that is
    there with a roll-over image link however I'm unable to label it
    since it uses the text as the label and therefore can't set the
    default panel I want opened. Is there a way to do this? Thanks for
    your help.

    Stefaan Lesage wrote:
    Is this possible with Pages 09 ? And can I achieve this ?
    Is it possible to look at the Help or at the Pages User Guide
    In the English one, page 17, we may read:
    • Some graphics, such as watermarks or logos, appear on pages. These objects are called master objects. If you cannot select an object in a template, it’s probably a master object. To learn more, see “Using Master Objects (Repeated Background Images)” on page 60.
    You can drag or place objects on a page, including imported graphics, movies, and sound, or objects that you create within Pages, including text boxes, charts, tables, and shapes.
    You can also insert pages that have been preformatted for the template you’re using. Click Pages or Sections in the toolbar and choose a template page. The new page is added immediately after the page where you placed the insertion point.
    Yvan KOENIG (from FRANCE vendredi 27 février 2009 23:01:32)

  • HT4168 I have created an 100 page booklet in Pages, with many photographs, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?

    I have created an 100 page booklet in Pages, with many photographs, and much written word, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?....
    Basically what I want to do is publish the document into both an eDocument, and a hard copy document. What is the best way to do this?

    No Peter, this statement came right off the Apple ePub statement when outlining how to use ePub. the full context is:
    Creating ePub files with Pages
    Summary
    Learn how to create ePub files with Pages.
    Products Affected
    Pages '09
    ePub is an open ebook standard produced by the International Digital Publishing Forum. Pages ’09 lets you export your documents in ePub format for reading with iBooks on iPhone, iPad, or iPod touch.
    iBooks supports both ePub and PDF file formats, and you can export both from Pages.
    When to use ePub or PDF
    Use ePub when text is the most important part of your document, for example when you create a book, a report, a paper, a thesis, or classroom reading material.
    More details on using ePubUse PDF when layout is the most important part of your document, for example when you create a brochure, a flyer, or a manual with multiple illustrations.
    More details on using PDF
    Creating an ePub Document to Read in iBooks
    You can export any Pages word processing document to the ePub file format for reading in an ePub reader, such as the iBooks application on the iPad, iPhone, or iPod touch. Documents created in page layout templates can’t be exported to the ePub format.
    Documents exported to ePub format will look different than their Pages counterparts. If you want to get the best document fidelity between the Pages and ePub formats, style your Pages document with paragraph styles and other formatting attributes allowed in an ePub file. A sample document is provided on the Apple Support site that features styles and guidelines to help you create a Pages document that’s optimized for export to the ePub file format, which you can use as a template or a guide. To learn more about using paragraph styles in Pages, see the topics under the heading “Working with Styles” in the Pages built-in help.
    To read your ePub document in iBooks on your mobile device, you must transfer the ePub file that you create onto your device.
    To use the “ePub Best Practices” sample documentTo learn more about using the ePub format and get a better feel for how a Pages document might appear as a book in iBooks, it’s a good idea to download the “ePub Best Practices” sample document. After reading the guidelines and instructions within the document, you can use it as a template to create your own document. You can also import the styles from the sample document into a new document you create.
    Download the “ePub Best Practices” sample document at the following web address:
    http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    Do either of the following:Use the sample document as a template.Import the paragraph styles from the sample document into a new or existing Pages document.
    Export the document you create to ePub format to see how it looks in iBooks.
    Preparing an existing Pages document for export to ePub format
    Documents exported to the ePub format automatically appear with page breaks before every chapter. A table of contents is automatically generated, which allows readers to jump quickly to any chapter title, heading, or subheading in the book. In order to create a meaningful table of contents, it’s important to apply appropriate styles within your document. The ePub reader uses the paragraph styles to determine which items should appear in the table of contents for your book.
    Note: The Pages document must have been created using a word processing template.

  • Bug when using Tab Images

    Hi
    I'm trying to use Tab Images in APEX 4.0.1, but have hit a couple of bugs.
    Firstly, I'm using the substitution string #TAB_IMAGE# in the page template. This is described in the help as "Image File Name", however this is replaced with the full image tag. I believe the help text is very misleading in this instance.
    Secondly, and this is by far the bigger problem, the img tag that replaces #TAB_IMAGE# has the image prefix hard coded into the src! So if the Current Tab Image for my tab is set to http://www.example.com/images/tab1.png then the source for the image in my case is /i/http://www.example.com/images/tab1.png which is incorrect.
    This means that images for tabs MUST always be in the directory referenced by the #IMAGE_PREFIX# substitution string.
    Am I missing something here? Is there a workaround? Currently we are unable to use Tab Images due to this.
    Many thanks
    Sara

    Hello Sara,
    The behavior you are describing is a long time known issue. It is a bug that should have been resolved by now, but for some reason was not. Maybe it’s because none of the default (built-in) page templates is using images with TABs.
    The workaround is to create your own img tag in the appropriate page template section, using the #TAB_NAME# substitution string. The principle is to name your corresponding images like current_#TAB_NAME#.gif and non_current_#TAB_NAME#.gif, where the #TAB_NAME# part in the file name is replaced with the actual tab name. So, for a TAB called EMP, you’ll have two image files by the names current_EMP.gif and non_current_EMP.gif.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Toggle between Web Items using an Image link in WAD 7.0

    Hello,
    i want to toggle between Web items using an image link: e.g. on my template I have a visible table and a hidden chart, now when I click on a small chart image I want the table to get hidden and the chart to get visible. I know that this is possible using a button group, but I need to make this possible using an image.
    My approach is the following:
    1. Using a script item with 2 commands of type SET_ITEM_PARAMETERS from the command wizard, from which one command hides the table and one command makes the chart visible.
    2. Writing a hyperlink which calls up the script using the image as source.
    Now my problem:
    This works only if I'm using ONE command of type SET_ITEM_PARAMETERS in the script function. So I can either make the chart visible or hide the table. When I insert a second command in the java script nothing works anymore. However, I need to use both commands at once in order to make it useful. I don't know how to program in javascript, can you help me out?!
    Thanks,
    Norbert
    PS: I could show you the javascript code which was created automatically by the web application designer including both commands, but as I've just seen it in the preview it looks totally messed up since it doesn't get formatted corrected.

    Hi Norbert,
    There is an easier approach. In the button group item, you can insert an image and a description. Just open the parameters of your button there you will find the parameter 'icon'. Insert an image there and leave the 'caption' empty.
    Best regards,
    Janine

  • Backing up and restoring using disk images.

    Hi there
    I want to create a disk image of a mac's HDD, then put the disk image onto secondary internal HDD, so that in the event of the mac going belly up, I can start from the OSX system disk, format the main drive, restore from the disk image on the 2nd HDD, and off I go.
    Using SuperDuper, I created a sparse disk image of the HDD onto the 2nd HDD. SuperDuper created a file called "HDDname.sparseimage". However, when I start Disk Utility and go to restore, it won't allow me to use the created file - the file is visible, just greyed-out.
    I used a sparse disk image because I read that normal disk images will be the same size as the original folders/volume and are read only. I only want it the size of the actual data because of space restraints and would prefer to have it read-write too.
    Is it a matter of just changing the filename from "HDDname.sparseimage" to "HDDname.dmg", to get DU to access it, or can DU not use sparse images?
    Anyone shed any light?
    TX
    Macfool

    Not sure if this will solve your problem, but I notice that although when I click on the Image button and navigate to a .sparseimage file, it is grayed out, I can drag-and-drop that same .sparseimage file into the Source field and it shows up.
    Did you try Images menu > Scan image for restore and selecting your sparse disk image to scan?
    Hope this helps...

  • How do I use the alternate list template when rendering web app items to a page?

    I need to have the ability to use the main list template on particular pages, but then use different markup for other pages - is there a way that I can specify the alternate list template within the module tag?

    Hi Matt, You should read about web apps here:
    http://helpx.adobe.com/content/help/en/business-catalyst/partner/web-apps-module-create-cu stom.html
    And module reference here:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html
    If you insert through the admin and click customise you will see the option to use listbackup. You will also see that layout availible via FTP and in the admin or DW.
    Here you can see where in the module paramaters the option to choose listbackup occurs:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html#id_65138

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

  • I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?

    I scanned an image and want to use the image trace tool, but it doesn't pick up all the lines.  Is there a way to darken the lines before using the image trace tool?  Help!

    If the scan is in B&W, then play with the Threshold setting here
    If it's in Color, then you will have to open the scan in a Raster editing software (like Photoshop) and play with the Brightness/Contrast settings to make the lines bolder.

  • Java Application [Java Bundler]: how I can use an image? Which path?

    Hi,
    how I can use an image in my Java Application when I create the jar bundle with Jar Bundler? Which is the path of the file? I don't know if I got it across...

    By image, do you mean an icon for your program?
    If so, then you need to create the image you want using any graphical drawing program, then use a utility such as Img2icns to put the image into the correct format (.icns). Once you have this, you can drag it into Jar Bundler and IIRC it just works.
    Bob

  • When I use yahoo images and i open an image in a new window, it tweakes out firefox so that panes are distorted and exerything, the whole firefox browser looks like an F5 tornado took it apart and lumped it on my desktop... is this a known glitch?

    When I use yahoo images and open an image in a new window, the page, once I click its tab causes the entire browser to scramble graphically, making it nearly impossible to navigate further. I right-clicked and selected close tab. That regains the visual clarity of the browser. But how can I fix this to browse the images?

    Phillipp,
    I tried it again using "save link as", and this time it actually worked! I just now downloaded several more using the "save link as" option, and it works perfectly. Thanks. Problem solved.
    Littleberry

  • Is it possible to use an XML Data Template to create a report in APEX?

    Hi,
    I have created an XML Data Template in BI Publisher passing one parameter and running two queries, then created an RTF Document Template to present the data.
    I can create a nice report in BI Publisher using the two elements. I have used RTF Document Templates to publish reports in APEX but the data comes from a Report region running a single query.
    I would like to run a report based in this kind of XML Data Template, in order to use several children queries related to a parent query. Is it possible to do it in APEX, or you have to use BI Publisher?
    Francisco
    ===========================
    Below is a simple data template definition:
    <dataTemplate name="cotizacion_template" description="Prueba de data template para cotizaciones" dataSourceRef="dbxprts">
         <parameters>
              <parameter name="p_id_cotizacion" dataType="character" defaultValue="1009" include_in_output="true"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="header_query">
                   <![CDATA[select id_cotizacion, fecha_cotizacion, id_clipro from f_cotizaciones where id_cotizacion = :p_id_cotizacion]]>
              </sqlStatement>
              <sqlStatement name="detail_query">
                   <![CDATA[select id_cotizacion as id_cot_child, id_detalle_cotizacion, partida, cantidad, id_producto from f_detalle_cotizaciones where id_cotizacion = :id_cotizacion]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="F_COTIZACIONES" source="header_query">
                   <element name="ID_COTIZACION" value="ID_COTIZACION"/>
                   <element name="ID_CLIPRO" value="ID_CLIPRO"/>
                   <element name="SUMA_CANTIDAD" value="F_DETALLE_COTIZACIONES.CANTIDAD" function="SUM()"/>
                   <group name="F_DETALLE_COTIZACIONES" source="detail_query">
                        <element name="PARTIDA" value="PARTIDA"/>
                        <element name="CANTIDAD" value="CANTIDAD"/>
                        <element name="ID_PRODUCTO" value="ID_PRODUCTO"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>

    Hi,
    I have the similar question. I used data templates in BI Publisher but now I want to use the same data template in Apex to print some reports.
    I tried to some examples but these were only using report queries. I also tried with the Web Service but this didn't work for me either maybe because I didn't
    used it in the right way. When I used the WS I received the binary of the report so the WS worked it was just the how and where to use it that didn't work for me.
    Now this older entry is BUMPED maybe we find a solution for our problem this way.
    regards,
    Steven

Maybe you are looking for