Create textview through css for site

Author Message

K259

Tuesday 29 November 2005 8:03:05 am

We need to add a view of our website with only text and no images, tables etc. how can we accomplish this in ez?

How do I create a view which uses the same templates as normal, but uses another CSS?

The case is to make our content available for people who uses software for browser-reading (problems with seeing) ++

Nathan Kelly

Tuesday 29 November 2005 6:06:15 pm

Hi Caxca, you can use different CSS media types to do what you need, when you link to you CSS you should define a media type for that CSS file, for example:

<style type="text/css" media="screen">
    @import url("stylesheets/screenstyle.css");
</style>

You sound like you want a stylesheet for "screen readers", in that case you could use:

<style type="text/css" media="screen">
    @import url("stylesheets/screenstyle.css");
</style>

<style type="text/css" media="aural">
    @import url("stylesheets/auralstyle.css");
</style>

The screen stylesheet will be used if the site is accessed by a pc (screen media, anything with a monitor) while the aural stylesheet will be used if the site is accessed by a screen reader (if it supports the aural media type, most should).

You can find more info here:
http://www.w3.org/TR/REC-html40/present/styles.html#h-14.2.4
http://www.w3.org/TR/REC-CSS2/media.html#media-types
http://www.w3.org/TR/REC-CSS2/aural.html

<i>I'm not 100% sure what the support is like on most user agents, I think most of the latest screen readers have support for this though.</i>

Hope that helps, Cheers!

Pardon me while I burst into flames...

K259

Wednesday 30 November 2005 1:30:05 am

Tnx. :)

But is it possible to create a sitedesign which uses the same sitedesign templates as in another sitedesign-catalog but uses another css-file?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 20:13:10
Script start
Timing: Jan 20 2025 20:13:10
Module start 'layout'
Timing: Jan 20 2025 20:13:10
Module start 'content'
Timing: Jan 20 2025 20:13:12
Module end 'content'
Timing: Jan 20 2025 20:13:12
Script end

Main resources:

Total runtime1.2079 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.9453151.2109
Module start 'layout' 0.00700.0026 739.156336.6484
Module start 'content' 0.00961.1974 775.8047558.1641
Module end 'content' 1.20700.0008 1,333.968811.8438
Script end 1.2078  1,345.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2809160.0002
Check MTime0.00140.1132160.0001
Mysql Total
Database connection0.00110.090110.0011
Mysqli_queries1.158795.9301570.0203
Looping result0.00060.0471550.0000
Template Total1.171097.020.5855
Template load0.00240.198420.0012
Template processing1.168696.753520.5843
Template load and register function0.00020.018510.0002
states
state_id_array0.00070.059910.0007
state_identifier_array0.00130.104220.0006
Override
Cache load0.00200.1631220.0001
Sytem overhead
Fetch class attribute can translate value0.00110.092720.0006
Fetch class attribute name0.00160.133340.0004
XML
Image XML parsing0.00200.169320.0010
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00300.2451160.0002
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs