Commit Graph

21 Commits

Author SHA1 Message Date
Ümit Tunç 9d601cafda Enhance Template Processing and Cleanup: Updated the ImportHtmlTemplates command to skip additional custom tokens during HTML processing and added a cleanup step to remove leftover tokens from the data array. Improved the TemplateService to replace legacy tokens in HTML, ensuring better template integrity during imports. 2025-12-29 09:39:21 +03:00
Ümit Tunç 537e2769cd Improve Asset Path Handling and Add Preview Action: Enhanced the ImportHtmlTemplates command to support fallback asset paths for better template import functionality. Updated the TemplateService to handle old asset paths. Added a preview action in the SectionTemplates localization files for improved user experience in template management. 2025-12-27 09:45:10 +03:00
Ümit Tunç f609eb3ec1 Enhance Template Import and Preview Functionality: Updated the ImportHtmlTemplates command to improve asset path handling by moving files to storage and updating HTML asset paths. Added a preview action in SectionTemplatesTable for better template management, along with a new Blade view for rendering previews. Adjusted route for template preview to accept any request method for flexibility. 2025-12-27 09:38:38 +03:00
Ümit Tunç 70cba75441 Refactor Template Processing and Update Setting Model: Enhanced the ImportHtmlTemplates command to improve header processing with dynamic logo handling based on navbar type. Updated the Setting model to include new accessors for various field types, ensuring better data retrieval. Adjusted the SettingSeeder to clear logo paths for better management. 2025-12-27 09:26:47 +03:00
Ümit Tunç 1fd56cc953 Refine Model Attribute Access in TemplateService: Enhanced the replacePlaceholders method to improve the retrieval of model attributes and accessors. Updated logic to handle image/file URLs more effectively and streamlined the process of accessing model properties, ensuring robustness in placeholder replacement. 2025-11-06 16:52:40 -03:00
Ümit Tunç f65ba75f41 Enhance TemplateService Placeholder Replacement: Updated the replacePlaceholders method to improve handling of model attributes when values are not found in the provided data. Added logic to retrieve image/file URLs and model attributes dynamically, enhancing flexibility and robustness in content rendering. 2025-11-06 16:52:25 -03:00
Ümit Tunç 43ff270cbd Refactor TemplateService and Blog Views: Updated TemplateService to utilize a generic model for placeholder replacement, enhancing flexibility in content rendering. Modified blog views to use the new featured image URL property, improving image handling and ensuring consistency across templates. 2025-11-06 16:51:17 -03:00
Ümit Tunç 605f0d158f Refactor Blog and Page Controllers: Updated BlogController and PageController to utilize the new Blog model and integrated dynamic header and footer templates. Removed the DatabaseSeeder file as it is no longer needed. Enhanced the TemplateService to support dynamic content rendering for both blog and page templates, improving the overall template management system. 2025-11-06 16:49:02 -03:00
Ümit Tunç 920502c5d3 Enhance placeholder functionality: Updated TemplateService to support 'setting' placeholders, allowing dynamic retrieval of settings values. Modified the placeholder picker to include setting types and added localization for new placeholder types in both English and Turkish. Improved site layout by integrating settings for favicon and custom CSS. 2025-11-05 17:18:02 -03:00
Ümit Tunç d72ce2434a Enhance template placeholder functionality: Updated the TemplateService to support new placeholders for page content, title, and excerpt. Modified related components and views to utilize these placeholders, improving dynamic content rendering. Added special placeholder buttons in the placeholder picker for easier insertion. 2025-11-05 10:24:43 -03:00
Ümit Tunç 8a99a36ee9 Enhance placeholder parsing functionality: Updated the TemplateService to support both dot and kebab-case formats for placeholders in HTML content. Improved regex patterns for parsing placeholders and custom blade components, ensuring better flexibility in template customization. 2025-11-04 15:38:15 -03:00
Ümit Tunç c5b83d0533 Enhance User Guide and Template Services: Added max content width configuration to UserGuide page for improved layout. Updated TemplateService to always replace placeholders, ensuring custom components are handled correctly even with empty default data. Enhanced error handling for custom component rendering, providing user-friendly error messages in the preview. Introduced a new guide for website setup, detailing installation steps and features. 2025-11-03 17:14:53 -03:00
Ümit Tunç 6a5e26638c Add placeholder picker component to template forms: Integrated a new placeholder picker component in Footer, Header, Menu, and Section template forms to enhance user experience by allowing easy insertion of placeholder variables. Updated the TemplateService to support custom blade components and added localization for the new placeholder picker functionality. 2025-11-03 16:30:50 -03:00
Ümit Tunç 5b14260622 Add data transformation for default_data fields in template forms: Implemented mutateFormDataBeforeSave method in Create and Edit pages for Footer, Header, and Section templates to properly format nested default_data fields into an array structure before saving. This enhancement improves data handling and ensures consistency across template forms. 2025-11-03 16:16:06 -03:00
Ümit Tunç 4a2a66c55c Add Menu Template functionality: Created MenuTemplate resource with CRUD pages, schemas, and table configuration. Implemented localization for menu template fields and integrated menu rendering capabilities. Enhanced TemplatePreviewController to support menu templates and updated dynamic template documentation accordingly. 2025-11-03 15:43:47 -03:00
Ümit Tunç 4d4cbfc7ed Refactor TemplateService and page form schemas for improved data handling: Updated generateDynamicFields method to accept default data as a separate parameter, allowing for better fallback logic. Adjusted page form schemas to pass existing and default data separately, enhancing template management and usability. 2025-11-01 03:41:24 -03:00
Ümit Tunç 0d23c20f85 Implement default data functionality for templates: Added 'default_data' field to HeaderTemplate, FooterTemplate, and SectionTemplate models. Enhanced TemplateService to generate dynamic fields based on this new data. Updated form schemas in template forms to include sections for default values, improving template management and usability. Added localization support for new fields in both English and Turkish. 2025-11-01 02:01:07 -03:00
Ümit Tunç c5e09296a4 Enhance TemplateService for dynamic file handling: Updated generateDynamicFields method to include disk and directory specifications for file uploads. Added formatFileUrl method to standardize URL formatting for images and files, ensuring proper asset handling and improved template rendering accuracy. 2025-11-01 01:15:49 -03:00
Ümit Tunç 02e4f46694 Implement dynamic template rendering and page observer: Enhanced PageController to support dynamic header and footer templates, utilizing TemplateService for placeholder replacement. Introduced PageObserver to manage homepage status across pages. Updated routes for improved debugging and dynamic homepage display. Refactored views to accommodate new templating system. 2025-10-31 15:49:29 -03:00
Ümit Tunç b766415b0d Remove line numbers from CodeEditor fields in footer, header, and section templates, as well as in the TemplateService and documentation, to streamline the user interface and improve readability. 2025-10-31 14:56:56 -03:00
Ümit Tunç c042cb5114 Add dynamic template system: Implemented header, footer, and section templates with corresponding models, migrations, and Filament resources. Enhanced Page model to support dynamic templates and updated localization files for new terms. Added TemplateService for managing template data and rendering. Comprehensive documentation included for usage and best practices. 2025-10-31 14:53:34 -03:00