How many Bootstraps?

Post Reply
User avatar
TA2Web
Ssr. Bludit
Posts: 28
Joined: Fri Sep 06, 2024 9:20 pm
Location: America
Has thanked: 1 time
Contact:

Hello there Bludit. Love your cms!

I am wondering though, how many installations of Bootstrap is needed?

My website uses Bootstrap already. Then, when I install bludit, it has its' own Bootstrap installation path.

So, what to do?

Perhaps I have an idea? What if Bludit asked the path to your current Bootstrap path before installation? So that it would use your existing installation of Bootstrap rather than installing it twice and having two or even three different paths to Bootstrap throughout your entire website area's.

Perhaps a requirement could be to have bootstrap installed in a folder and just let bludit use those paths instead of installing it again just for the bludit installation? If the user does not have a previously installed version of bootstrap then bludit would use it's own bootstrap files upon install.

/bs/531/css/bootstrap.min.css
/bs/531/js/bootstrap.bundle.min.js

Code: Select all

// BOOTSTRAP
$BS_CORE_CSS = ".. /bs/531/css/bootstrap.min.css";
$BS_JS_BUNDLE = ".. /bs/531/js/bootstrap.bundle.min.js";
$BS5BLOG_CSS = ".. /css/bs5blog.css"; //custom css file path
head.php

Code: Select all

<meta charset="<?= htmlspecialchars($SITE_META_CHAR) ?>">
<meta name="viewport" content="<?= htmlspecialchars($SITE_META_VIEWPORT) ?>">
<?php echo Theme::metaTags('title'); ?>
<?php echo Theme::metaTags('description'); ?>
<meta name="robots" content="<?= htmlspecialchars($SITE_META_ROBOTS_OFF) ?>">
<meta name="copyright" content="<?= htmlspecialchars($SITE_META_COPYRIGHT) ?>">
<?php Theme::plugins('siteHead'); ?>
<link rel="icon" href="<?= htmlspecialchars($SITE_FAVICON) ?>" type="<?= htmlspecialchars($SITE_FAVICON_TYPE) ?>">
<link rel="apple-touch-icon" href="<?= htmlspecialchars($SITE_APPLETOUCH_ICON) ?>">

<link rel="stylesheet" href="<?= htmlspecialchars($BS_CORE_CSS) ?>">
<link rel="stylesheet" href="<?= htmlspecialchars($SITE_CSS) ?>">
<?php echo Theme::css('css/style.css'); ?>
<?= $FONTAWESOME ?>

<?= $GOOGLEANALYTICS ?>

<?= $SHARETHIS ?>
This line, though, could it not be also replaced?

Code: Select all

<?php echo Theme::css('css/style.css'); ?>
with ..

Code: Select all

<link rel="stylesheet" href="<?= htmlspecialchars($BS5BLOG_CSS) ?>">
which is essentially needed for this bludit theme.

I am only speaking of a website that has already been made, and then installing bludit as a blog section. If your site already has bootstrap installed in its' own folder, then why use others for other software? If you only use bludit for your entire website then you should have no issues using the provided themes.

.. also .. you should know that I am a complete idiot while trying to create this theme. I wish I knew more of the bludit variables to call data sets. For example, a blog admin or user should be allowed to have a profile link in the users admin profile/account area. So when a user publishes a blog their username can link to a profile page either on site or off site.
User avatar
TA2Web
Ssr. Bludit
Posts: 28
Joined: Fri Sep 06, 2024 9:20 pm
Location: America
Has thanked: 1 time
Contact:

So what is related to the code above is I am using outside flat file php data.

I am not sure if this thread is related or not? How to use PHP code in static pages ..

Anyway .. basically the question was how can they use php code in bludit.

I have installed a site variable file that defines a lot of how the site works. I include this on the index.php file first thing. Then, assign variables to certain scripts or whatever is needed with php code. However, I have not tested another 3rd party script with this yet.

index.php first line

Code: Select all

<?php include($_SERVER['DOCUMENT_ROOT'] . '.. /MY-SITE-VARIABLE-FILE.php'); ?>
Which will include your stuff. But I am only learning still.
User avatar
Edi
Site Admin
Posts: 3116
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 76 times
Been thanked: 118 times
Contact:

TA2Web wrote: Wed Dec 11, 2024 5:46 pm My website uses Bootstrap already. Then, when I install bludit, it has its' own Bootstrap installation path.
I cannot follow you... What do you mean with "my website"?

Bludit is a content management system (CMS). This means, that it is an application to install a website.

Bludit includes the framework Bootstrap. How to use it is explained in the documentation:

https://docs.bludit.com/en/themes/inclu ... #bootstrap
clickwork.ch, digitale Projekte
Bludit-Tipps, Erklärungen und Anleitungen
Post Reply