Back to Modular Theme with PAGE BUILDER - Clear Support

ebizbuys
ebizbuys

Hi Charis, Great theme. I seem to have an issue with the media path? If I use the out of the box carousel on the demo pages and set an image uploaded to gallery the image/media path is incorrect.

When I check the path like data-src="{{ 'my-image-name.jpg'|media }}" I get this incorrect output data-src="http://localhost/sitename/sitename/storage/app/media/my-image-name.jpg"

the sitename seems to double up. I must have mucked up the config? I am having trouble getting another test project up so I can locally test if I have a conflict (I sent you an email about that separately - not related to anything here)

AJ

Last updated

Charis
Charis

Hello !
Please tell me exactly what carousel you are using and you get this issue, so i can test it.

ebizbuys
ebizbuys

images and video carousel

ebizbuys
ebizbuys

maybe it is my local configuration? I have had to hardcode in config/cms.php the media path to make it work. http://localhost/sitename/storage/app/media

e.34414
e.34414

Hi! I have the same problem. Can you help with that as I don`t want to hardcode in config/cms.php?

Charis
Charis

e.zaharieva34414 said:

Hi! I have the same problem. Can you help with that as I don`t want to hardcode in config/cms.php?

Hello!
Please give me link of your live site to take a look

e.34414
e.34414

I`m working on localhost.

Charis
Charis

The problem has to do with your local configuration. I never had issues on local environment with Octobercms installation. What configuration do you use for your local server? Its really hard to help you with that.

ebizbuys
ebizbuys

yeah it is something to do locally. Its not this theme it is a local config. I have tested on other themes and same issue. When you go live it will probably be sorted. So for now just do what I said and hardcode the cms.php file

autumn
autumn

Hello I have a similar issue. I'm a new October user

With the Clear theme, I've uploaded an image to the library and put it in a folder, then inserted it, but the theme uses a relative path URL for it, while for theme's resources it uses an exact path. It happen for the header's logo and for the header image block.

<div class="header-image jarallax" style="background-image: url(/storage/app/media/mythemeduplicate/mylogo.png);">
<section id="page-header" class="jarallax" style="background-image: url(https://domain.com/october/themes/myfolder/assets/images/img/1920x500.png);">
Charis
Charis

autumn said:

Hello I have a similar issue. I'm a new October user

With the Clear theme, I've uploaded an image to the library and put it in a folder, then inserted it, but the theme uses a relative path URL for it, while for theme's resources it uses an exact path. It happen for the header's logo and for the header image block.

<div class="header-image jarallax" style="background-image: url(/storage/app/media/mythemeduplicate/mylogo.png);"> <section id="page-header" class="jarallax" style="background-image: url(https://domain.com/october/themes/myfolder/assets/images/img/1920x500.png);">

Hello!
This has nothing to do with theme, this is how Octobercms uses paths depending on the situation. You can read this:
https://github.com/octobercms/october/issues/4082
Every image used from medialibrary uses relative path after this update:
https://github.com/octobercms/october/commit/ccb2c372bb1fb3980c1240ffb2f7aeef5e786dae
Every image used from theme assets or by file upload method uses absolute path.

autumn
autumn

I read those pages, but could not find the related setting neither in the backend nor in the cms.php or MediaLibrary.php files.

I don't care if the path is relative or absolute as long as the URL is working, and here it is not working.

EDIT : I had installed October in an extra folder and this URL segment was missing, I moved stuff to the webrot and it's fine.

Last updated

Charis
Charis

autumn said:

I read those pages, but could not find the related setting neither in the backend nor in the cms.php or MediaLibrary.php files.

I don't care if the path is relative or absolute as long as the URL is working, and here it is not working.

Can you please show me a live site to investigate your issue?

1-13 of 13