Forums / Developer / Create textview through css for site

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?

eZ debug

Timing: Jan 20 2025 18:12:14
Script start
Timing: Jan 20 2025 18:12:14
Module start 'content'
Timing: Jan 20 2025 18:12:14
Module end 'content'
Timing: Jan 20 2025 18:12:14
Script end

Main resources:

Total runtime0.1388 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.7344180.8281
Module start 'content' 0.00610.0045 768.562594.0078
Module end 'content' 0.01060.1281 862.5703521.9219
Script end 0.1387  1,384.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.3862200.0002
Check MTime0.00130.9676200.0001
Mysql Total
Database connection0.00080.567810.0008
Mysqli_queries0.092666.71731410.0007
Looping result0.00100.74801390.0000
Template Total0.127792.010.1277
Template load0.00080.557210.0008
Template processing0.126991.460310.1269
Override
Cache load0.00060.405610.0006
Sytem overhead
Fetch class attribute can translate value0.00120.863310.0012
XML
Image XML parsing0.00030.185210.0003
General
dbfile0.00795.6638200.0004
String conversion0.00000.004330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs