CAnnot Install Template from zip file Topic is solved

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

CAnnot Install Template from zip file

Post by webdevtim » Sun Jun 23, 2019 12:33 am

I created a template that I want to be installable, and I am having a difficult time getting it to install.

Initially it installed, but then I got cute and tried to replace all the position names, like <position>Debug</position> with the Language Constant place holders and from that point I couldn't install the template again.

The folders and files included in the zip file are:

css
html
images
img
js
language
less
component.php
error.php
favicon.ico
index.php
offline.php
temaplte_preview.png
template_thumbnail.png
templateDetails.xml

And in language/enGB is

en-GB.tpl_joomla3-cssgrids-template.ini
en-GB.tpl_joomla3-cssgrids-template.sys.ini


FPA —
Forum Post Assistant (v1.4.9 (lambrusco)) : 22nd June 2019 wrote:
Last PHP Error(s) Reported :: wrote:[22-Jun-2019 13:34:16 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_memcache.dll' (tried: C:\MAMP\bin\php\php7.2.10\ext\php_memcache.dll (The specified procedure could not be found.), C:\MAMP\bin\php\php7.2.10\ext\php_php_memcache.dll.dll (The specified module could not be found.)) in Unknown on line 0
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.9.8-Stable (Amani) 11-June-2019
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Writable (666) | Owner: --protected-- . (uid: /gid: ) | Group: --protected-- (gid: ) | Valid For: 3.9
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: false | .htaccess/web.config: No | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: N/A | LiveSite: | Session lifetime: 120 | Session handler: database | Shared sessions: false | SSL: N/A | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.9.8: Yes | Database Supports J! 3.9.8: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Windows NT | OS Version: 6.2 | Technology: i586 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: --protected-- | System TMP Writable: Yes | Free Disk Space : 380.78 GiB |

PHP Configuration :: Version: 7.2.10 | PHP API: apache2handler | Session Path Writable: Yes | Display Errors: | Error Reporting: 32767 | Log Errors To: C:/MAMP/logs/php_error.log | Last Known Error: 22nd June 2019 05:34:16. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 32M | Max. POST Size: 32M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 128M

Database Configuration :: Version: 5.7.24-log (Client:mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $) | Host: --protected-- (--protected--) | default Collation: utf8_general_ci (default Character Set: utf8) | Database Size: 4.45 MiB | #of Tables: 78
Detailed Environment :: wrote:PHP Extensions :: Core (7.2.10) | bcmath (7.2.10) | calendar (7.2.10) | com_dotnet (7.2.10) | ctype (7.2.10) | date (7.2.10) | filter (7.2.10) | hash (1.0) | iconv (7.2.10) | json (1.6.0) | SPL (7.2.10) | odbc (7.2.10) | pcre (7.2.10) | Reflection (7.2.10) | session (7.2.10) | sockets (7.2.10) | standard (7.2.10) | mysqlnd (mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $) | tokenizer (7.2.10) | zip (1.15.3) | zlib (7.2.10) | libxml (7.2.10) | dom (20031129) | PDO (7.2.10) | bz2 (7.2.10) | SimpleXML (7.2.10) | soap (7.2.10) | xml (7.2.10) | wddx (7.2.10) | xmlreader (7.2.10) | xmlwriter (7.2.10) | apache2handler () | openssl (7.2.10) | curl (7.2.10) | fileinfo (1.0.5) | gd (7.2.10) | intl (1.1.0) | mbstring (7.2.10) | mysqli (7.2.8) | Phar (2.0.2) | pdo_mysql (7.2.10) | pdo_sqlite (7.2.10) | sqlite3 (7.2.10) | xsl (7.2.10) | exif (7.2.10) | imagick (3.4.3RC1) | Zend Engine (3.2.0) |
Potential Missing Extensions ::

Switch User Environment (Experimental) :: PHP CGI: No | Server SU: No | PHP SU: No | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No

Apache Modules :: core | mod_win32 | mpm_winnt | http_core | mod_so | mod_actions | mod_alias | mod_asis | mod_auth_basic | mod_auth_digest | mod_authn_anon | mod_authn_dbd | mod_authn_dbm | mod_authn_file | mod_authnz_ldap | mod_authz_dbm | mod_authz_groupfile | mod_authz_host | mod_authz_owner | mod_authz_user | mod_autoindex | mod_cache | mod_cern_meta | mod_cgi | mod_charset_lite | mod_dav | mod_dav_fs | mod_dav_lock | mod_dbd | mod_deflate | mod_dir | mod_dumpio | mod_env | mod_expires | mod_ext_filter | mod_file_cache | mod_filter | mod_headers | mod_ident | mod_imagemap | mod_include | mod_info | mod_isapi | util_ldap | mod_logio | mod_log_config | mod_log_forensic | mod_mime | mod_mime_magic | mod_negotiation | mod_proxy | mod_proxy_ajp | mod_proxy_balancer | mod_proxy_connect | mod_proxy_ftp | mod_proxy_http | mod_proxy_scgi | mod_reqtimeout | mod_rewrite | mod_setenvif | mod_speling | mod_ssl | mod_status | mod_substitute | mod_unique_id | mod_userdir | mod_usertrack | mod_version | mod_vhost_alias | mod_fcgid | mod_authn_default | mod_authz_default | mod_disk_cache | mod_wsgi | mod_perl | mod_php7 | Apache |
Potential Missing Modules :: mod_security | mod_evasive | mod_dosevasive | mod_qos | mod_userdir |
Folder Permissions :: wrote:Core Folders :: images/ (777) | components/ (777) | modules/ (777) | plugins/ (777) | language/ (777) | templates/ (777) | cache/ (777) | logs/ (---) | tmp/ (777) | administrator/components/ (777) | administrator/modules/ (777) | administrator/language/ (777) | administrator/templates/ (777) | administrator/logs/ (777) |

Elevated Permissions (First 10) :: administrator/ (777) | administrator/cache/ (777) | administrator/components/ (777) | administrator/components/com_actionlogs/ (777) | administrator/components/com_actionlogs/controllers/ (777) | administrator/components/com_actionlogs/helpers/ (777) | administrator/components/com_actionlogs/layouts/ (777) | administrator/components/com_actionlogs/libraries/ (777) | administrator/components/com_actionlogs/models/ (777) | administrator/components/com_actionlogs/models/fields/ (777) |
Database Information :: wrote:Database statistics :: Uptime: 34207 | Threads: 1 | Questions: 789 | Slow queries: 0 | Opens: 768 | Flush tables: 1 | Open tables: 64 | Queries per second avg: 0.023 |
Extensions Discovered :: wrote:Components :: SITE ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
3rd Party::

Components :: ADMIN ::
Core :: com_actionlogs (3.9.0) 1 | com_admin (3.0.0) 1 | com_ajax (3.2.0) 1 | com_associations (3.7.0) 1 | com_banners (3.0.0) 1 | com_cache (3.0.0) 1 | com_categories (3.0.0) 1 | com_checkin (3.0.0) 1 | com_config (3.0.0) 1 | com_content (3.0.0) 1 | com_contenthistory (3.2.0) 1 | com_cpanel (3.0.0) 1 | com_fields (3.7.0) 1 | com_finder (3.0.0) 1 | com_installer (3.0.0) 1 | com_joomlaupdate (3.6.2) 1 | com_languages (3.0.0) 1 | com_login (3.0.0) 1 | com_media (3.0.0) 1 | com_menus (3.0.0) 1 | com_messages (3.0.0) 1 | com_modules (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_plugins (3.0.0) 1 | com_postinstall (3.2.0) 1 | com_privacy (3.9.0) 1 | com_redirect (3.0.0) 1 | com_search (3.0.0) 1 | com_tags (3.1.0) 1 | com_templates (3.0.0) 1 | com_users (3.0.0) 1 |
3rd Party::

Modules :: SITE ::
Core :: mod_articles_archive (3.0.0) 1 | mod_articles_categories (3.0.0) 1 | mod_articles_category (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_breadcrumbs (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_login (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_search (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_tags_similar (3.1.0) 1 | mod_users_latest (3.0.0) 1 | mod_whosonline (3.0.0) 1 | mod_wrapper (3.0.0) 1 |
3rd Party::

Modules :: ADMIN ::
Core :: mod_custom (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_logged (3.0.0) 1 | mod_login (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_quickicon (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_stats_admin (3.0.0) 1 | mod_status (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_title (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_version (3.0.0) 1 |
3rd Party::

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: PLG_ACTIONLOG_JOOMLA (3.9.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_authentication_gmail (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_ldap (3.0.0) 0 | plg_captcha_recaptcha (3.4.0) 0 | plg_captcha_recaptcha_invisible (3.8) 0 | plg_content_confirmconsent (3.9.0) 0 | plg_content_emailcloak (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_finder (3.0.0) 0 | plg_content_joomla (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_content_pagebreak (3.0.0) 1 | plg_content_pagenavigation (3.0.0) 1 | plg_content_vote (3.0.0) 0 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_repeatable (3.9.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | plg_installer_webinstaller (2.0.1) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_tags (3.0.0) 1 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 1 | plg_system_cache (3.0.0) 0 | plg_system_debug (3.0.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_highlight (3.0.0) 1 | plg_system_languagecode (3.0.0) 0 | plg_system_languagefilter (3.0.0) 0 | plg_system_log (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_logrotation (3.9.0) 1 | plg_system_p3p (3.0.0) 0 | plg_system_privacyconsent (3.9.0) 0 | plg_system_redirect (3.0.0) 0 | plg_system_remember (3.0.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_stats (3.5.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_twofactorauth_totp (3.2.0) 0 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_user_contactcreator (3.0.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 0 | plg_user_terms (3.9.0) 0 |
3rd Party:: plg_editors_codemirror (5.40.0) 1 | plg_editors_tinymce (4.5.11) 1 |
Templates Discovered :: wrote:Templates :: SITE :: beez3 (3.1.0) 1 |
Templates :: ADMIN :: hathor (3.0.0) 1 | isis (1.0) 1 |
Last edited by imanickam on Sun Jun 23, 2019 2:48 am, edited 1 time in total.
Reason: Disabled Smilies

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27140
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: CAnnot Install Template from zip file

Post by imanickam » Sun Jun 23, 2019 3:32 am

In these circumstances, it would be beneficial to attach the template developed. This would help others to test it.

I do not believe that you can you can use the language strings for the position names in the tag <position></position>. The identifier for the position name must be defined as a language string.

For example:

In the template Protostar, the position position-7 is defined as such in the file templateDetails.xml.

Code: Select all

		<position>position-7</position>

The identifier for the position position-7 (ie Right) is defined in the following language string that is available in the file tpl_protostar.sys.ini.

Code: Select all

TPL_PROTOSTAR_POSITION_POSITION-7="Right"
Hope this helps.

Note:
Noticed that you have completely removed the template Protostar. You can review the files in the beez3 template & its .sys language file to find out how the position position-7 is identified as Left Top.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Translations Coordination Team | Tamil (தமிழ்) Translation Team

Eegan - Support the poor and underprivileged

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Sun Jun 23, 2019 4:36 pm

I want to make this a private message, I don't want to provide a template for free download.

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Sun Jun 23, 2019 5:58 pm

imanickam showed me that I had a typo in the templateDetails.xml file

<position>Search Bar/position>

I fixed that and the template installed except now I am getting the following message
JInstaller: :Install: File does not exist C:\MAMP\htdocs\joomla3-cssgrids-template\tmp\install_5d0fbbec85555\joomla3-cssgrids-template\language\en-GB.tpl_joomla3-cssgrids-template.ini
I don't know where the temporary folder tmp/install_5d0fbbec85555 comes from but that is where the problem lies, and in fact I don't know why Joomla is going to the tmp folder for these files in the first place when I explicitly directed Joomla to install the template from a specific file not located in the tmp folder.

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Sun Jun 23, 2019 6:30 pm

OK. I resolved that problem, I changed the "language" entry in templateDetails.xml to:

Code: Select all

<languages folder="language">
    <language tag="en-GB">en-GB/tpl_joomla3-cssgrids-template.ini</language>
    <language tag="en-GB">en-GB/tpl_joomla3-cssgrids-template.sys.ini</language>
</languages>
And I realize that I can't use language constants anywhere in templateDetails.xml, so I changed

Code: Select all

<description>TPL_CSSGRIDS_XML_DESCRIPTION</description>
to

Code: Select all

<description>This template is based on the Protostar template with all of the Bootstrap class properties replaced with CSS Grids properties. This template was originally designed for "The Lawyer's Committee for 9/11 Inquiry."</description>
Now it installs without error or warning.

Thank you imanickam for pointing out that typo, because that got the template installed, and from there I just looked a little more critically at the XML and got the rest.

For all, I suggest reading this: https://docs.joomla.org/Portal:Template_Development
Last edited by toivo on Mon Jun 24, 2019 3:46 pm, edited 1 time in total.
Reason: mod note: marked unsolved on request

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37152
Joined: Sat Apr 05, 2008 9:58 pm

Re: CAnnot Install Template from zip file

Post by Webdongle » Sun Jun 23, 2019 9:31 pm

webdevtim wrote:
Sun Jun 23, 2019 6:30 pm
...
And I realize that I can't use language constants anywhere in templateDetails.xml, ...
Yes you can
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Sun Jun 23, 2019 10:42 pm

Well, can you explain Webdongle?

Inquiring minds would like to know.

Is there a tutorial somewhere??

Oh yes, Albert Einstein got Quantum Position and Quantum Entanglement wrong because he too couldn't see that doing the same thing over and over again usually does produce different results almost every time; well at least at the quantum level.

We all do it, it seems built into human nature.

The thing is, do we get knocked out of our rut before our condition becomes terminal.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37152
Joined: Sat Apr 05, 2008 9:58 pm

Re: CAnnot Install Template from zip file

Post by Webdongle » Mon Jun 24, 2019 12:39 am

webdevtim wrote:
Sun Jun 23, 2019 10:42 pm
Well, can you explain ...

Code: Select all

<description>TPL_PROTOSTAR_XML_DESCRIPTION</description>
Is in templateDetails.xml. And the corresponding text is in it's language file (en-GB.tpl_protostar.sys.ini) and you can see the results in the style edit screen in Admin.

You just need to look at a working Template (like Protostar) and you can work out the correct syntax and the name format of the language files.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Mon Jun 24, 2019 5:18 pm

Below is the Protostar templateDetails.xml file. the only language constant used is for <description>. And that language constant in en-GB.tpl_protostar.ini is TPL_PROTOSTAR_XML_DESCRIPTION.

I did the same thing, but called my language constant TPL_CSSGRIDS_XML_DESCRIPTION and the file, en-GB.tpl_joomla3-cssgrids-template.ini. I should get the same result.

But this little exercise showed me that I made a mistake, I called the language constant file, tpl_joomla3-cssgrids-template.ini in templateDetails.xml instead of en-GB.tpl_joomla3-cssgrids-template.ini. Guess that is why Joomla couln't find the language constants.

I will give it another try.

Code: Select all

	<name>protostar</name>
	<version>1.0</version>
	<creationDate>4/30/2012</creationDate>
	<author>Kyle Ledbetter</author>
	<authorEmail>admin@joomla.org</authorEmail>
	<copyright>Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.</copyright>
	<description>TPL_PROTOSTAR_XML_DESCRIPTION</description>
	<files>
		<filename>component.php</filename>
		<filename>error.php</filename>
		<filename>offline.php</filename>
		<filename>favicon.ico</filename>
		<filename>index.php</filename>
		<filename>templateDetails.xml</filename>
		<filename>template_preview.png</filename>
		<filename>template_thumbnail.png</filename>
		<folder>css</folder>
		<folder>html</folder>
		<folder>images</folder>
		<folder>img</folder>
		<folder>js</folder>
		<folder>language</folder>
		<folder>less</folder>
	</files>
	<positions>
		<position>banner</position>
		<position>debug</position>
		<position>position-0</position>
		<position>position-1</position>
		<position>position-2</position>
		<position>position-3</position>
		<position>position-4</position>
		<position>position-5</position>
		<position>position-6</position>
		<position>position-7</position>
		<position>position-8</position>
		<position>position-9</position>
		<position>position-10</position>
		<position>position-11</position>
		<position>position-12</position>
		<position>position-13</position>
		<position>position-14</position>
		<position>footer</position>
	</positions>
	<languages folder="language">
		<language tag="en-GB">en-GB/en-GB.tpl_protostar.ini</language>
		<language tag="en-GB">en-GB/en-GB.tpl_protostar.sys.ini</language>
	</languages>
	<config>
Last edited by webdevtim on Mon Jun 24, 2019 5:46 pm, edited 1 time in total.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37152
Joined: Sat Apr 05, 2008 9:58 pm

Re: CAnnot Install Template from zip file

Post by Webdongle » Mon Jun 24, 2019 5:38 pm

webdevtim wrote:
Mon Jun 24, 2019 5:18 pm
... the only language constant used is for <description>. And that language constant in en-GB.tpl_protostar is TPL_PROTOSTAR_XML_DESCRIPTION....
...
That is incorrect.

Code: Select all

...<config>
		<fields name="params">
			<fieldset name="advanced">
				<field 
					name="templateColor" 
					type="color" 
					label="TPL_PROTOSTAR_COLOR_LABEL"
					description="TPL_PROTOSTAR_COLOR_DESC" 
					class="" 
					default="#08C"
				/>

				<field 
					name="templateBackgroundColor" 
					type="color" 
					label="TPL_PROTOSTAR_BACKGROUND_COLOR_LABEL"
					description="TPL_PROTOSTAR_BACKGROUND_COLOR_DESC" 
					class="" 
					default="#F4F6F7"
				/>...
There are also more.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Tue Jun 25, 2019 12:45 am

Webdongle, the template is installing without warning, but when I visit the template under Extensions -> Templates, I see the following:

Image
Image

All the paths are correct and all the language constant labels are correct. Not sure why this is happening.

I am just going to finish reading the Joomla Documentation of creating new templates and then visit this tomorrow again.

Just in case you didn't believe me about everything being in the right place, here is what Temaplate Editor shows:
Image

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27140
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: CAnnot Install Template from zip file

Post by imanickam » Tue Jun 25, 2019 3:23 am

Rename your language files as shown below.

en-GB.tpl_joomla3-cssgrids-template.ini to en-GB.tpl_joomla3cssgridstemplate.ini
en-GB.tpl_joomla3-cssgrids-template.sys.ini to en-GB.tpl_joomla3cssgridstemplate.sys.ini

Make sure to change the names of the language files in the file templateDetails.xml
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Translations Coordination Team | Tamil (தமிழ்) Translation Team

Eegan - Support the poor and underprivileged

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Tue Jun 25, 2019 3:57 am

Thanks you so so much, I would never have guessed that in a hundred years.

en-GB, the language, tpl_ prefix that implies it is part of the template, joomla3cssgridstemplate the name designation of the particular template, .sys system files, .ini initiation files.

Was that the idea for the naming convention?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37152
Joined: Sat Apr 05, 2008 9:58 pm

Re: CAnnot Install Template from zip file

Post by Webdongle » Tue Jun 25, 2019 8:04 am

webdevtim wrote:
Tue Jun 25, 2019 12:45 am
...
Just in case you didn't believe me about everything being in the right place, ...
No I didn't and as it turned out I was correct ... you had the language files incorrect.


webdevtim wrote:
Tue Jun 25, 2019 3:57 am
...
Was that the idea for the naming convention?
https://docs.joomla.org/Specification_o ... precedence
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Tue Jun 25, 2019 9:10 pm

First of all, thanks imanickam and Webdongle.

Made the changes to the filenames, but I am still getting ht e following.

I need to read all the literature first.

Image

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 37152
Joined: Sat Apr 05, 2008 9:58 pm

Re: CAnnot Install Template from zip file

Post by Webdongle » Tue Jun 25, 2019 11:42 pm

The constants in the xml file and language file are different
or
There is a typo in the syntax in one of the files
or
The language file does not exist in the correct place (unlikely if the rest shows OK)
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"The definition of insanity is doing the same thing over and over again, but expecting different results": Albert Einstein

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Wed Jun 26, 2019 2:21 am

OK, I will go over it again very very carefully.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27140
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: CAnnot Install Template from zip file

Post by imanickam » Wed Jun 26, 2019 3:55 am

As you may notice from the following images that naming the language files,as mentioned earlier, to en-GB.tpl_joomla3cssgridstemplate.ini and en-GB.tpl_joomla3cssgridstemplate.sys.ini does work.

template_untranslated_strings.jpg
Note: The language string to hold the description of the template as defined in the xml file is TPL_CSS_GRIDS_XML_DESCRIPTION. Whereas, in the language file, the language string defined is TPL_CSSGRIDS_XML_DESCRIPTION. So, there is a mismatch. This is what webdongle is referring to.

template_translated_strings.jpg
Note: All the language strings are translated but for the language string "Blog Introtext characters number". The reason being, in the xml file, for the label, no language string has been used; instead, the text string "Blog Introtext characters number" has been used.

For future reference:
In the tab System of Global Configuration, for the option "Debug Language" choose the value Yes and for the option "Language Display". After saving the setting, in the Debug section of your template, you would see "Joomla Debug Console". In the console, there are sections such as Parsing Errors in Language Files, Language Files Loaded, and Untranslated String. This feature will come handy to resolve the untranslated language strings issue. Also, notice that the translated language strings will be shown within two asterisks (**) and the untranslated language strings will be shown within two question marks (??).
You do not have the required permissions to view the files attached to this post.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Translations Coordination Team | Tamil (தமிழ்) Translation Team

Eegan - Support the poor and underprivileged

webdevtim
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Sun May 28, 2017 4:37 am

Re: CAnnot Install Template from zip file

Post by webdevtim » Wed Jun 26, 2019 8:27 pm

Thanks, I thought I was copying and pasting from one to another.

Thanks also I will turn debug on.


Post Reply

Return to “Templates for Joomla! 3.x”