Typesetter Feedback

2 votes
Vote Up

Make gpEasy sites portable by using $dirPrefix in content urls

Currently moving a gpEasy installation across directory levels is virtually impossible without in-depth knowledge of the system.

If gpEasy would save paths of images and internal links with $dirPrefix, a website could be truly portable and therefore copied/moved inside the file system hierarchy or from a test host/sub-dir to a live host/root-dir and vice versa.

current file sections array:

$file_sections = array (
  0 =>
  array (
    'type' => 'text',
    'content' => '<a href="/gpEasyCMS_test/About">Internal Link</a>
      <img src="/gpEasyCMS_test/data/_uploaded/image/someImage.jpg" style="width:100px; height:100px;" />',
    'attributes' => array (),
    'resized_imgs' => array (),
    'modified' => 123456789,
    'modified_by' => 'user',
  )
);

prefixed:

$file_sections = array (
  0 =>
  array (
    'type' => 'text',
    'content' => '<a href="' . $dirPrefix . '/About">Internal Link</a>
      <img src="' . $dirPrefix . '/data/_uploaded/image/someImage.jpg" style="width:100px; height:100px;" />',
    'attributes' => array (),
    'resized_imgs' => array (),
    'modified' => 123456789,
    'modified_by' => 'user',
  )
);

 

If implemented into gpEasy's core save functions, it would also work for addon data as long as plugins utilize these save functions.

Additionally the Rewrite Rules in .htaccess would have to be checked to accomplish this and maybe some other locations, too(?).

Shouldn't notably impact rendering performance.

New Comment

You must be logged in to comment on an idea.

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register