Forum

Thread tagged as: Question, Discussion, CKEditor

Images in Perch

Hi, Quick a couple of Questions.

1) I have a template that contains 3 images;

                <img src="<perch:content id="Image 1 (317x195)" type="Image" label="Image 1 (317x195)"  width="800" />" alt="<perch:content id="Image 1 (317x195) Alt Text" type="text" label="Image 1 (317x195)Alt text" required="true" />"/>

                <img src="<perch:content id="Image 2 (197x195)" type="Image" label="Image 2 (197x195)" />" alt="<perch:content id="Image 2 (197x195) Alt Text" type="text" label="Image 2 (197x195)Alt text" required="true" />" />

                <img src="<perch:content id="Image 3 (196x195)" type="Image" label="Image 3 (196x195)" />" alt="<perch:content id="Image 3 (196x195) Alt Text" type="text" label="Image 3 (196x195)Alt text" required="true" />" />

All the entries in the the admin panel are there but when I want to select an image from assets it will not select it. Any Ideas has too why?

2) In CKeditor, Can you change/select a text colour, to show on the main page? A client has asked. We are currently doing the colour css and splitting the content out to suit.

Hope all this makes sense.

Cheers Dennis

Diagnostic Report if needed;

PERCH INFORMATION

Perch: 2.8.4
Production mode: Production (100)
Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_blog (4.6), perch_events (1.9.2), perch_forms (1.8.3), perch_mailchimp (2.0.1)
DB driver: PDO
DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_events, perch2_events_categories, perch2_events_to_categories, perch2_forms, perch2_forms_responses, perch2_mailchimp_campaigns, perch2_mailchimp_history, perch2_mailchimp_log, perch2_mailchimp_stats, perch2_mailchimp_subscribers, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_forms',
        'perch_mailchimp',
        'perch_blog',
        'perch_events',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for perch_mailchimp: update_list_stats (60 mins)
Scheduled tasks for perch_events: update_category_counts (60 mins)
Editor plug-ins: ckeditor, markitup
H1: 74d48e79d0514ab625da34d7ab003064
L1: 54dea6c570a855f3c140e2634e8dfa7a
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.4: done
latest_version: 2.8
on_sale_version: 2.8.6
headerScheme: light
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 1
perch_mailchimp_secret: 0be4dca4fadc0988aa2801256cc3e11e
perch_mailchimp_update: 2.0
perch_blog_update: 5.0
perch_blog_post_url: /blog/{postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_mailchimp_api_key:
perch_mailchimp_list_id:
perch_mailchimp_campaign_url: /mailchimp/campaign.php?s={campaignSlug}
perch_blog_comment_notify: 0
perch_events_update: 1.8
perch_events_detail_url: /events/event.php?s={eventSlug}
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: hopebmor_webuser
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: hopebmor_perch
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/London
PERCH_EMAIL_FROM: developer@develop101.co.uk
PERCH_EMAIL_FROM_NAME: Dennis Pickworth
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/hopebmor/public_html/develop.hopevalleynutrition.co.uk/perch
PERCH_CORE: /home/hopebmor/public_html/develop.hopevalleynutrition.co.uk/perch/core
PERCH_RESFILEPATH: /home/hopebmor/public_html/develop.hopevalleynutrition.co.uk/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_DEBUG: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/hopebmor/public_html/develop.hopevalleynutrition.co.uk/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
HOSTING SETTINGS

PHP: 5.4.35
Zend: 2.4.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
MySQL server: 5.5.41-cll-lve
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, filter, ftp, gd, gettext, SPL, iconv, session, json, mbstring, mcrypt, standard, mysql, mysqli, pgsql, mysqlnd, Phar, posix, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, suhosin, homeloader, PDO, pdo_sqlite, imagick, timezonedb, uploadprogress, pdo_mysql, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: Yes
PHP max upload size: 128M
PHP max form post size: 32M
PHP memory limit: 168M
Total max uploadable file size: 32M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
DOCUMENT_ROOT: /home/hopebmor/public_html/develop.hopevalleynutrition.co.uk
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.8,en;q=0.6
HTTP_COOKIE: cmsa=1; PHPSESSID=a2d6060e5e608b9deaff7110d79f259f
HTTP_DNT: 1
HTTP_HOST: develop.hopevalleynutrition.co.uk
HTTP_REFERER: https://develop.hopevalleynutrition.co.uk/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36
HTTP_X_FORWARDED_FOR: 86.5.178.144
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 86.5.178.144
REMOTE_PORT: 36251
REQUEST_METHOD: GET
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/hopebmor/public_html/develop.hopevalleynutrition.co.uk/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_ADDR: 162.213.251.251
SERVER_ADMIN: webmaster@develop.hopevalleynutrition.co.uk
SERVER_NAME: develop.hopevalleynutrition.co.uk
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: VV0JQaLV@-gADzswrU4AAAEA
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1432160577.5
REQUEST_TIME: 1432160577
argc: 1
Dennis Pickworth

Dennis Pickworth 0 points

  • 6 years ago

HI Dennis,

My first take would be that you have more than the limit of 16 characters in your id. Also, I'm not sure that spaces in an id work- use underscores.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Valid characters for an id are listed in the documentation.

letters, numbers and underscores only.

https://docs.grabaperch.com/docs/templates/attributes/id/