Custom Code problem 'loop' #878
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#878
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
Expected result
JCB shouldn't try to process Replace/Insert codes in files that are no longer used in the component
Actual result
Error notice after compile:
File site/layouts//<tab_name>_fullwidth.php could not be found, so the custom code for this file could not be addded.
System information (as much as possible)
Additional comments
Even if you disable the entry that is created in the Custom Codes area, it then tries to create a new custom code entry and then can't process it because the file is not in the active component.
This is a pretty low-level/priority issue, but could be somewhat confusing to new users of JCB. Would be nice if it just wouldn't even look for custom codes in files that are not active in the component. Although I'm not sure how much of an issue that would be to add to the workflow.
This is a problem since we don't search your installed component based on the new files, we search all
php,xml,js
files in your component folders.So there is really just to two options here, delete the file from your website, or don't add tags to the file.
To change this search method will require either auto delete of files no longer active, or worse. So don't think we will be going that direction anytime soon... hope you can live with that.