Custom Theme in OwnCloud - Text File Viewer App

Hello,

I’m encountering an issue with integrating the Text File Viewer app with my custom theme in OwnCloud. The app was installed from the OwnCloud Market with the intention of opening text-based file formats like .docx and .xlsx.

Here’s the behavior I’m observing:

  • A new “Text” item appears in the Files section of the navbar.
  • Clicking on “Text” redirects me to a plain HTML page at /index.php/apps/files_textviewer/ that lists my directories and files.
  • Attempting to open any file results in the content being displayed in what seems to be encoded or binary format, rather than readable text.

I suspect that there might be some configuration missing in my custom theme that is necessary for Market apps to function properly. Unfortunately, I haven’t been able to find any documentation related to this specific issue.

Has anyone experienced a similar issue or can provide guidance on how to integrate Market apps with a custom OwnCloud theme? Any assistance or direction towards relevant documentation would be greatly appreciated.

Thank you in advance for your help!

config:list system
{
“system”: {
“instanceid”: “ocm7eupejz84”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“localhost”,
cloud.secuoyastudios.com
],
“enable_certificate_management”: true,
“datadirectory”: “/var/www/owncloud/data”,
“overwrite.cli.url”: “https:REMOVED SENSITIVE VALUE.secuoyastudios.com”,
“dbtype”: “mysql”,
“version”: “10.13.3.3”,
“dbname”: “owncloud”,
“dbconnectionstring”: “”,
“dbhost”: “localhost”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“allow_user_to_change_mail_address”: “”,
“logtimezone”: “UTC”,
“apps_paths”: [
{
“path”: “/var/www/owncloud/apps”,
“url”: “/apps”,
“writable”: false
},
{
“path”: “/var/www/owncloud/apps-external”,
“url”: “/apps-external”,
“writable”: true
}
],
“installed”: true,
“filelocking.enabled”: true,
“redis”: {
“host”: “localhost”,
“port”: 6379
},
“memcache.locking”: “\OC\Memcache\Redis”,
“memcache.local”: “\OC\Memcache\APCu”,
“integrity.ignore.missing.app.signature”: [
“mynewtheme”
],
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“mail_smtpsecure”: “tls”,
“mail_smtpport”: “587”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpauthtype”: “LOGIN”,
“mail_smtpauth”: 1,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE
}
}

app:list
Enabled:

  • activity:
    • Version: 2.7.2
    • Path: /var/www/owncloud/apps/activity
  • comments:
    • Version: 0.3.0
    • Path: /var/www/owncloud/apps/comments
  • configreport:
    • Version: 0.2.2
    • Path: /var/www/owncloud/apps/configreport
  • dav:
    • Version: 0.7.0
    • Path: /var/www/owncloud/apps/dav
  • diagnostics:
    • Version: 0.2.0
    • Path: /var/www/owncloud/apps/diagnostics
  • federatedfilesharing:
    • Version: 0.5.0
    • Path: /var/www/owncloud/apps/federatedfilesharing
  • federation:
    • Version: 0.1.0
    • Path: /var/www/owncloud/apps/federation
  • files:
    • Version: 1.6.0
    • Path: /var/www/owncloud/apps/files
  • files_external:
    • Version: 0.9.0
    • Path: /var/www/owncloud/apps/files_external
  • files_mediaviewer:
    • Version: 1.0.5
    • Path: /var/www/owncloud/apps/files_mediaviewer
  • files_pdfviewer:
    • Version: 1.0.1
    • Path: /var/www/owncloud/apps/files_pdfviewer
  • files_sharing:
    • Version: 0.14.0
    • Path: /var/www/owncloud/apps/files_sharing
  • files_texteditor:
    • Version: 2.6.1
    • Path: /var/www/owncloud/apps/files_texteditor
  • files_textviewer:
    • Version: 1.0.3
    • Path: /var/www/owncloud/apps-external/files_textviewer
  • files_trashbin:
    • Version: 0.9.1
    • Path: /var/www/owncloud/apps/files_trashbin
  • files_versions:
    • Version: 1.3.0
    • Path: /var/www/owncloud/apps/files_versions
  • firstrunwizard:
    • Version: 1.3.0
    • Path: /var/www/owncloud/apps/firstrunwizard
  • market:
    • Version: 0.8.0
    • Path: /var/www/owncloud/apps/market
  • mynewtheme:
    • Version: 1.0.0
    • Path: /var/www/owncloud/apps-external/mynewtheme
  • notifications:
    • Version: 0.6.0
    • Path: /var/www/owncloud/apps/notifications
  • provisioning_api:
    • Version: 0.5.0
    • Path: /var/www/owncloud/apps/provisioning_api
  • systemtags:
    • Version: 0.3.0
    • Path: /var/www/owncloud/apps/systemtags
  • templateeditor:
    • Version: 0.4.0
    • Path: /var/www/owncloud/apps/templateeditor
  • updatenotification:
    • Version: 0.2.1
    • Path: /var/www/owncloud/apps/updatenotification
      Disabled:
  • admin_audit:
    • Path: /var/www/owncloud/apps/admin_audit
  • announcementcenter:
    • Path: /var/www/owncloud/apps/announcementcenter
  • customgroups:
    • Path: /var/www/owncloud/apps/customgroups
  • drawio:
    • Path: /var/www/owncloud/apps/drawio
  • encryption:
    • Path: /var/www/owncloud/apps/encryption
  • enterprise_key:
    • Path: /var/www/owncloud/apps/enterprise_key
  • external:
    • Path: /var/www/owncloud/apps/external
  • files_antivirus:
    • Path: /var/www/owncloud/apps/files_antivirus
  • files_classifier:
    • Path: /var/www/owncloud/apps/files_classifier
  • files_external_dropbox:
    • Path: /var/www/owncloud/apps/files_external_dropbox
  • files_external_ftp:
    • Path: /var/www/owncloud/apps/files_external_ftp
  • files_ldap_home:
    • Path: /var/www/owncloud/apps/files_ldap_home
  • files_lifecycle:
    • Path: /var/www/owncloud/apps/files_lifecycle
  • files_primary_s3:
    • Path: /var/www/owncloud/apps/files_primary_s3
  • firewall:
    • Path: /var/www/owncloud/apps/firewall
  • graphapi:
    • Path: /var/www/owncloud/apps/graphapi
  • guests:
    • Path: /var/www/owncloud/apps/guests
  • impersonate:
    • Path: /var/www/owncloud/apps/impersonate
  • kerberos:
    • Path: /var/www/owncloud/apps/kerberos
  • metrics:
    • Path: /var/www/owncloud/apps/metrics
  • oauth2:
    • Path: /var/www/owncloud/apps/oauth2
  • openidconnect:
    • Path: /var/www/owncloud/apps/openidconnect
  • password_policy:
    • Path: /var/www/owncloud/apps/password_policy
  • ransomware_protection:
    • Path: /var/www/owncloud/apps/ransomware_protection
  • sharepoint:
    • Path: /var/www/owncloud/apps/sharepoint
  • systemtags_management:
    • Path: /var/www/owncloud/apps/systemtags_management
  • theme-enterprise:
    • Path: /var/www/owncloud/apps/theme-enterprise
  • user_external:
    • Path: /var/www/owncloud/apps/user_external
  • user_ldap:
    • Path: /var/www/owncloud/apps/user_ldap
  • user_shibboleth:
    • Path: /var/www/owncloud/apps/user_shibboleth
  • web:
    • Path: /var/www/owncloud/apps/web
  • windows_network_drive:
    • Path: /var/www/owncloud/apps/windows_network_drive
  • wopi:
    • Path: /var/www/owncloud/apps-external/wopi
  • workflow:
    • Path: /var/www/owncloud/apps/workflow

The DOCX and XLSX file formats are distinctly not plaintext files. Nothing in the marketplace description of that app suggests that it works with Microsoft Word and Excel files.

2 Likes